Class: Paradeiser::Controller
- Inherits:
-
Object
- Object
- Paradeiser::Controller
show all
- Defined in:
- lib/paradeiser/controllers/controller.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(method) ⇒ Controller
5
6
7
8
9
|
# File 'lib/paradeiser/controllers/controller.rb', line 5
def initialize(method)
@method = method
@exitstatus = -1
@has_output = false
end
|
Instance Attribute Details
#exitstatus ⇒ Object
Returns the value of attribute exitstatus.
3
4
5
|
# File 'lib/paradeiser/controllers/controller.rb', line 3
def exitstatus
@exitstatus
end
|
#has_output ⇒ Object
Returns the value of attribute has_output.
3
4
5
|
# File 'lib/paradeiser/controllers/controller.rb', line 3
def has_output
@has_output
end
|
Instance Method Details
#call(args, options) ⇒ Object
11
12
13
14
15
|
# File 'lib/paradeiser/controllers/controller.rb', line 11
def call(args, options)
@args = args
@options = options
send(@method)
end
|
#get_binding ⇒ Object
21
22
23
|
# File 'lib/paradeiser/controllers/controller.rb', line 21
def get_binding
return binding
end
|
#model ⇒ Object
17
18
19
|
# File 'lib/paradeiser/controllers/controller.rb', line 17
def model
self.class.name.split("::").last.sub('Controller', '')
end
|