A
askingagain
Dear all
I am learning Ruby. "The Ruby Way" has following example.
irb(main):047:0> str = "Albert Einstein"
=> "Albert Einstein"
irb(main):048:0> str.index(?E)
=> 7
irb(main):049:0> str1 = "mathematics"
=> "mathematics"
irb(main):050:0> flag1 = str1.include? ?e
=> true
irb(main):051:0>
What is ?E
(Does ? above work like shell globbing?)
I tried the FAQ online but could not get anything..
TIA for any pointers/online help
-- thx atul
I am learning Ruby. "The Ruby Way" has following example.
irb(main):047:0> str = "Albert Einstein"
=> "Albert Einstein"
irb(main):048:0> str.index(?E)
=> 7
irb(main):049:0> str1 = "mathematics"
=> "mathematics"
irb(main):050:0> flag1 = str1.include? ?e
=> true
irb(main):051:0>
What is ?E
(Does ? above work like shell globbing?)
I tried the FAQ online but could not get anything..
TIA for any pointers/online help
-- thx atul