Method: Such::Thing.do_config

Defined in:
lib/such/thing.rb

.do_config(obj, *parameters, &block) ⇒ Object

Given an Object not sub-classed as a Thing:

obj = NotAThing.new

One can still act on it like a Thing as follows:

Thing.do_config(obj, *parameters, &block)


128
129
130
131
132
133
# File 'lib/such/thing.rb', line 128

def self.do_config(obj, *parameters, &block)
  container, arguments, methods, signals = Thing.do_parameters(parameters)
  Thing.do_methods(obj, methods, container)
  Thing.do_links(obj, signals, block)
  warn "Warning: arguments not used in do_config(#{obj.class}...)." if arguments.length > 0
end