Class: MethodDecorator::Models::Call
- Defined in:
- lib/method_decorator/models/call.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(klass, method_name, *args, &block) ⇒ Call
constructor
A new instance of Call.
Constructor Details
#initialize(klass, method_name, *args, &block) ⇒ Call
Returns a new instance of Call.
10 11 12 13 14 15 16 |
# File 'lib/method_decorator/models/call.rb', line 10 def initialize(klass, method_name, *args, &block) self.klass = klass self.method_name = method_name self.args = *args self.block = block validate! end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
8 9 10 |
# File 'lib/method_decorator/models/call.rb', line 8 def args @args end |
#block ⇒ Object
Returns the value of attribute block.
8 9 10 |
# File 'lib/method_decorator/models/call.rb', line 8 def block @block end |
#klass ⇒ Object
Returns the value of attribute klass.
8 9 10 |
# File 'lib/method_decorator/models/call.rb', line 8 def klass @klass end |
#method_name ⇒ Object
Returns the value of attribute method_name.
8 9 10 |
# File 'lib/method_decorator/models/call.rb', line 8 def method_name @method_name end |