class ActionFramework::ThisObject
Public Instance Methods
create_method( name, &block )
click to toggle source
# File lib/actionframework/nextcontroller.rb, line 19 def create_method( name, &block ) self.class.send( :define_method, name, &block ) end
method_missing(meth,*args,&block)
click to toggle source
Calls superclass method
# File lib/actionframework/nextcontroller.rb, line 7 def method_missing(meth,*args,&block) if(meth.to_s.include?("=")) instance_variable_set("@"+meth.to_s.gsub("=",""),args[0]) create_method(meth.to_s.gsub("=","")) do instance_variable_get("@"+meth.to_s.gsub("=","")) end else super end end