Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myobject
- def initialize(obj, method)
- @command = method
- @obj = obj
- end
- def do_it
- @obj.send(method)
- end
- end
- myo = myobject.new(self, "dofancystuff")
- myo.do_it
- def dofancystuff
- #! does something here
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement