Class: Quincunx::Method
- Inherits:
-
Object
- Object
- Quincunx::Method
- Defined in:
- lib/quincunx/method.rb
Defined Under Namespace
Classes: Application
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #application(obj, args) ⇒ Object
-
#initialize(params, body) ⇒ Method
constructor
A new instance of Method.
Constructor Details
#initialize(params, body) ⇒ Method
Returns a new instance of Method.
4 5 6 7 |
# File 'lib/quincunx/method.rb', line 4 def initialize(params, body) @params = params @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/quincunx/method.rb', line 9 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
9 10 11 |
# File 'lib/quincunx/method.rb', line 9 def params @params end |
Instance Method Details
#application(obj, args) ⇒ Object
11 12 13 |
# File 'lib/quincunx/method.rb', line 11 def application(obj, args) Application.new(obj, args, params, body) end |