presentations/highlight-js/test/markup/ruby/prompt.expect.txt

24 lines
1.8 KiB
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
<span class="hljs-meta">2.0.0p0 :001 &gt;</span> [<span class="hljs-string">'some'</span>]
=&gt; [<span class="hljs-string">"some"</span>]
<span class="hljs-meta">2.0.0p0 :002 &gt;</span> if true
<span class="hljs-meta">2.0.0p0 :003?&gt;</span> <span class="hljs-string">"yop"</span>
<span class="hljs-meta">2.0.0p0 :004?&gt;</span> end
=&gt; <span class="hljs-string">"yop"</span>
<span class="hljs-meta">jruby-1.7.16 :001 &gt;</span> <span class="hljs-string">"RVM-Format"</span>
<span class="hljs-meta">&gt;&gt;</span> obj = OpenStruct.new <span class="hljs-symbol">:integer</span> =&gt; <span class="hljs-number">987</span>, <span class="hljs-symbol">:symbol</span> =&gt; <span class="hljs-symbol">:so_great</span>
=&gt; #&lt;OpenStruct integer=987, symbol=:so_great&gt;
<span class="hljs-meta">&gt;&gt;</span> [obj,obj,obj]
=&gt; [#&lt;OpenStruct integer=987, symbol=:so_great&gt;, #&lt;OpenStruct integer=987, symbol=:so_great&gt;, #&lt;OpenStruct integer=987, symbol=:so_great&gt;]
<span class="hljs-meta">&gt;&gt;</span> {<span class="hljs-number">1</span> =&gt; obj, <span class="hljs-number">2</span> =&gt; obj}
=&gt; {<span class="hljs-number">1</span>=&gt;#&lt;OpenStruct integer=987, symbol=:so_great&gt;, <span class="hljs-number">2</span>=&gt;#&lt;OpenStruct integer=987, symbol=:so_great&gt;}
<span class="hljs-meta">&gt;&gt;</span> if <span class="hljs-number">10</span> &gt; <span class="hljs-number">20</span>
<span class="hljs-meta">&gt;&gt;</span> <span class="hljs-string">"YEAH"</span>
<span class="hljs-meta">&gt;&gt;</span> else
<span class="hljs-meta">?&gt;</span> <span class="hljs-string">"NO"</span>
<span class="hljs-meta">&gt;&gt;</span> end
=&gt; <span class="hljs-string">"NO"</span>
<span class="hljs-meta">irb(main):002:0&gt;</span> test = <span class="hljs-number">1</span>