Skip to content

Instantly share code, notes, and snippets.

@d3chapma d3chapma/strings.rb
Created Aug 2, 2016

Embed
What would you like to do?
class Person
attr_reader :name
def initialize(name:)
@name = name
end
end
test = "My String"
person = Person.new(name: test)
test.object_id #=> 70351787063920
person.name.object_id #=> 70351787063920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.