Skip to content

Instantly share code, notes, and snippets.

View andreyors's full-sized avatar
🎯
Focusing

Andrey O andreyors

🎯
Focusing
View GitHub Profile
@andreyors
andreyors / gist:7e44cf794e214de1be96
Created March 6, 2015 19:47
Getter implementation
class PropertyTest
# Location for overloaded data.
attr_reader :data
def initialize
@data = {}
end
def method_missing(name, *arguments)
value = arguments[0]