Class: Quincunx::Method

Inherits:
Object
  • Object
show all
Defined in:
lib/quincunx/method.rb

Defined Under Namespace

Classes: Application

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/quincunx/method.rb', line 9

def body
  @body
end

#paramsObject (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