String Interpolation With Instance Variables
class Person
def initialize(name)
@name = name
end
def whoami
puts "I am #@name"
end
end
bob = Person.new("bob")
#=> #<Person:0x007fdaf3291618 @name="bob">
bob.whoami
# I am bobLast updated