Module: RubyMVC::ActionProvider
- Included in:
- Models::ViewModelTemplate, Views::View
- Defined in:
- lib/ruby_mvc/controllers/action_provider.rb
Overview
This module is used to provide actions to toolkit widget implementations for appropriate rendering based on the widget type.
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
Instance Method Summary collapse
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
33 34 35 |
# File 'lib/ruby_mvc/controllers/action_provider.rb', line 33 def actions @actions end |
Instance Method Details
#action(key, options = {}, &block) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/ruby_mvc/controllers/action_provider.rb', line 35 def action(key, = {}, &block) @actions ||= ActionGroup.new a = Action.new(key, , &block) @actions << a a end |