2.0.0p0 :001 > ['some']
=> ["some"]
2.0.0p0 :002 > if true
2.0.0p0 :003?> "yop"
2.0.0p0 :004?> end
=> "yop"
jruby-1.7.16 :001 > "RVM-Format"
>> obj = OpenStruct.new :integer => 987, :symbol => :so_great
=> #<OpenStruct integer=987, symbol=:so_great>
>> [obj,obj,obj]
=> [#<OpenStruct integer=987, symbol=:so_great>, #<OpenStruct integer=987, symbol=:so_great>, #<OpenStruct integer=987, symbol=:so_great>]
>> {1 => obj, 2 => obj}
=> {1=>#<OpenStruct integer=987, symbol=:so_great>, 2=>#<OpenStruct integer=987, symbol=:so_great>}
>> if 10 > 20
>> "YEAH"
>> else
?> "NO"
>> end
=> "NO"
irb(main):002:0> test = 1
irb(main):001:1* class Secret
irb(main):002:2* def [](x)
irb(main):003:2* "TREASURE" if x==42
irb(main):004:1* end
irb(main):005:0> end
=> :[]
irb(main):006:0> Secret.new[0]
=> nil
irb(main):008:0> Secret.new[2239232]
=> nil
irb(main):009:0> Secret.new[42]
=> "TREASURE"