This class represents any object with certain methods Usage: [m1,m2,…] where m1…mn are method names
This accessor sets/gets method names in the duck type.
# File lib/rubybreaker/type/type.rb, line 122 def initialize(meth_names=[],*args) super(*args) @meth_names = meth_names.map!{|n| n.to_sym} end
# File lib/rubybreaker/type/type.rb, line 126 def add_meth(meth_name) @meth_names << meth_name.to_sym if !@meth_names.include?(meth_name) end