Class: Controll::Assistant
- Inherits:
-
Object
- Object
- Controll::Assistant
- Defined in:
- lib/controll/assistant.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(controller, options = {}) ⇒ Assistant
constructor
A new instance of Assistant.
Constructor Details
#initialize(controller, options = {}) ⇒ Assistant
Returns a new instance of Assistant.
8 9 10 11 |
# File 'lib/controll/assistant.rb', line 8 def initialize controller, = {} @controller = controller @options = end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
6 7 8 |
# File 'lib/controll/assistant.rb', line 6 def controller @controller end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/controll/assistant.rb', line 6 def @options end |
Class Method Details
.controller_methods(*names) ⇒ Object
13 14 15 |
# File 'lib/controll/assistant.rb', line 13 def self.controller_methods *names delegate *names, to: :controller end |