Class: Caml::Argument
- Inherits:
-
Object
- Object
- Caml::Argument
- Defined in:
- lib/caml/argument.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, desc:, type: 'string') ⇒ Argument
constructor
A new instance of Argument.
Constructor Details
#initialize(name:, desc:, type: 'string') ⇒ Argument
Returns a new instance of Argument.
5 6 7 8 9 |
# File 'lib/caml/argument.rb', line 5 def initialize(name:, desc:, type: 'string') @name = name @desc = desc @type = type end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
3 4 5 |
# File 'lib/caml/argument.rb', line 3 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/caml/argument.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/caml/argument.rb', line 3 def type @type end |