Class: Loco::Controller
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Observable
#init, #initialize, #register_observer, #remove_all_observers, #remove_observer, #set_properties, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/motion-loco/controller.rb', line 9
def method_missing(method, *args, &block)
if self.content.respond_to? method
self.content.send(method, *args)
else
super
end
end
|
Class Method Details
.instance ⇒ Object
17
18
19
|
# File 'lib/motion-loco/controller.rb', line 17
def self.instance
@instance ||= new
end
|
.method_missing(method, *args, &block) ⇒ Object
21
22
23
|
# File 'lib/motion-loco/controller.rb', line 21
def self.method_missing(method, *args, &block)
self.instance.send(method, *args, &block)
end
|