Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 299b647355
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (35 sloc) 0.441 kb
puts "ohaie"
# => ohaie
puts "ohaie".size
# => 5
puts "ohaie".class.name
# => String
puts "oh" + "aie"
# => ohaie
puts "oh\naie"
# => oh
# => aie
puts "\"oh\" \\ \\n"
# => "oh" \ \n
puts '\''
# => '
puts "
hey
"
# =>
# => hey
# =>
a = "xxx"
a.replace "aaa"
puts a
# => aaa
puts "a" <=> "b"
# => -1
puts "a" <=> "a"
# => 0
puts "ohaie".substring(0,2)
# => oh
puts "ohaie".substring(2,3)
# => aie
puts "ohaie".substring(2,4)
# =>
Jump to Line
Something went wrong with that request. Please try again.