a guest Jul 16th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class A
- def method_missing(method_sym, *arguments, &block)
- if method_sym == : && arguments.first.is_a?(Integer)
- # do something here with value (search something or create)
- a = A.new
RAW Paste Data