<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>rspec</anon>
  </categories>
  <description>違いというか使い分け方がわからない （追記アリ） letは使われたタイミングで処理される。let!は毎回処理をされる。 てっきり、letは一回初期化されたら使いまわされるんだと思っていたけど、呼び出されたときは毎回初期化するようだ。 describe 'let_test' do let(:sample_1){ puts &quot;****let****&quot;; 'sample1'} let!(:sample_2){ puts &quot;****let!****&quot;; 'sample2'} before do puts &quot;before---&quot; end after do puts &quot;after----&quot; end it …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20120623%2F1340441871&quot; title=&quot;letとlet!の違いがわからない - すがブロ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51-3T735zLL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-06-23 17:57:51</published>
  <title>letとlet!の違いがわからない</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20120623/1340441871</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
