Class: MethodAnnotation::Parameter
- Inherits:
-
Object
- Object
- MethodAnnotation::Parameter
- Defined in:
- lib/method_annotation/parameter.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#original ⇒ Object
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(original: nil, args: nil, method_name: nil) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(original: nil, args: nil, method_name: nil) ⇒ Parameter
Returns a new instance of Parameter.
5 6 7 8 9 |
# File 'lib/method_annotation/parameter.rb', line 5 def initialize(original: nil, args: nil, method_name: nil) @original = original @args = args @method_name = method_name end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/method_annotation/parameter.rb', line 3 def args @args end |
#method_name ⇒ Object
Returns the value of attribute method_name.
3 4 5 |
# File 'lib/method_annotation/parameter.rb', line 3 def method_name @method_name end |
#original ⇒ Object
Returns the value of attribute original.
3 4 5 |
# File 'lib/method_annotation/parameter.rb', line 3 def original @original end |