Class: Yoda::Parsing::TypeParser::Generator::Param
- Inherits:
-
Object
- Object
- Yoda::Parsing::TypeParser::Generator::Param
- Defined in:
- lib/yoda/parsing/type_parser.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(kind, type, keyword = nil) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(kind, type, keyword = nil) ⇒ Param
Returns a new instance of Param.
132 133 134 135 136 |
# File 'lib/yoda/parsing/type_parser.rb', line 132 def initialize(kind, type, keyword = nil) @kind = kind @keyword = keyword @type = type end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
131 132 133 |
# File 'lib/yoda/parsing/type_parser.rb', line 131 def keyword @keyword end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
131 132 133 |
# File 'lib/yoda/parsing/type_parser.rb', line 131 def kind @kind end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
131 132 133 |
# File 'lib/yoda/parsing/type_parser.rb', line 131 def type @type end |