Module: Flame::Controller::ModuleActions

Defined in:
lib/flame/controller.rb

Overview

Extension for modules whose public methods will be defined as actions via including

Instance Method Summary collapse

Instance Method Details

#included(ctrl) ⇒ Object



196
197
198
199
200
# File 'lib/flame/controller.rb', line 196

def included(ctrl)
	public_instance_methods.each do |meth|
		ctrl.send :define_method, meth, public_instance_method(meth)
	end
end