Method: AutoC::Composite#method_missing

Defined in:
lib/autoc/composite.rb

#method_missing(meth, *args) ⇒ Object (private)



140
141
142
143
144
145
146
147
148
149
# File 'lib/autoc/composite.rb', line 140

def method_missing(meth, *args)
  if (method = @methods[meth]).nil?
    # On anything thats not a defined method return a type-decorated identifier
    # This allows to generate arbitrary type-qualified identifiers with #{type.foo}
    raise "unexpected arguments" unless args.empty?
    identifier(meth)
  else
    method
  end
end