Method: Such::Thing.do_methods
- Defined in:
- lib/such/thing.rb
.do_methods(obj, methods, container = nil) ⇒ Object
97 98 99 100 101 102 103 104 |
# File 'lib/such/thing.rb', line 97 def self.do_methods(obj, methods, container=nil) # If user does not specify how to add to container, assume default way. methods[:into]=Thing.which_method(container) if container and not methods.has_key?(:into) methods.each do |mthd, args| (mthd==:into)? Thing.into(obj, container, *args) : Thing.do_method(obj, mthd, *args) end end |