Class: TreeHaver::ParserIdentity
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ParserIdentity
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#implementation ⇒ Object
Returns the value of attribute implementation.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#implementation ⇒ Object
Returns the value of attribute implementation
54 55 56 |
# File 'lib/tree_haver/contracts.rb', line 54 def implementation @implementation end |
#name ⇒ Object
Returns the value of attribute name
54 55 56 |
# File 'lib/tree_haver/contracts.rb', line 54 def name @name end |
#version ⇒ Object
Returns the value of attribute version
54 55 56 |
# File 'lib/tree_haver/contracts.rb', line 54 def version @version end |
Instance Method Details
#to_h ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/tree_haver/contracts.rb', line 55 def to_h { name: name, version: version, implementation: implementation } end |