Class: RubyMVC::Views::View
- Inherits:
-
Toolkit::AbstractWidget
- Object
- Toolkit::AbstractWidget
- RubyMVC::Views::View
- Defined in:
- lib/ruby_mvc/views/view.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#controller ⇒ Object
Returns the value of attribute controller.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ View
constructor
A new instance of View.
Methods included from Toolkit::SignalHandler::ClassMethods
#signal, #signals, #valid_signal!, #valid_signal?
Methods included from Toolkit::SignalHandler
#signal_connect, #signal_disconnect, #signal_emit
Constructor Details
#initialize(options = {}) ⇒ View
Returns a new instance of View.
33 34 35 36 37 38 |
# File 'lib/ruby_mvc/views/view.rb', line 33 def initialize( = {}) @actions = ActionGroup.new = self.controller = [:controller] ([:actions] || []).each { |a| @actions << a } end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
30 31 32 |
# File 'lib/ruby_mvc/views/view.rb', line 30 def actions @actions end |
#controller ⇒ Object
Returns the value of attribute controller.
31 32 33 |
# File 'lib/ruby_mvc/views/view.rb', line 31 def controller @controller end |