Class: Controll::Assistant

Inherits:
Object
  • Object
show all
Defined in:
lib/controll/assistant.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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, options = {}
  @controller = controller
  @options = options
end

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



6
7
8
# File 'lib/controll/assistant.rb', line 6

def controller
  @controller
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/controll/assistant.rb', line 6

def options
  @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