Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def respond_to?(method, include_private = false)
- load_data if @last_updated.nil?
- super || @data.respond_to?(method, include_private)
- end
- def method_missing(sym, *args, &block)
- load_data if @last_updated.nil?
- return super unless @data.respond_to? sym
- instance_eval "def #{sym}(*args, &block) @data.#{sym}(*args, &block) end"
- send(sym, *args, &block)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement