class Object
Public Instance Methods
attach(mod = Symbiont)
click to toggle source
# File lib/symbiont.rb, line 98 def attach(mod = Symbiont) include mod end
call_method_chain(method_chain, arg = nil)
click to toggle source
# File lib/symbiont.rb, line 103 def call_method_chain(method_chain, arg = nil) return self if method_chain.empty? method_chain.split('.').inject(self) do |o, m| if arg.nil? o.send(m.intern) else o.send(m.intern, arg) end end end