Class: TreeHaver::ProcessStructureItem
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ProcessStructureItem
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#span ⇒ Object
Returns the value of attribute span.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
348 349 350 |
# File 'lib/tree_haver/contracts.rb', line 348 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
348 349 350 |
# File 'lib/tree_haver/contracts.rb', line 348 def name @name end |
#span ⇒ Object
Returns the value of attribute span
348 349 350 |
# File 'lib/tree_haver/contracts.rb', line 348 def span @span end |
Instance Method Details
#to_h ⇒ Object
349 350 351 352 353 354 355 |
# File 'lib/tree_haver/contracts.rb', line 349 def to_h { kind: kind, **(name ? { name: name } : {}), span: span.to_h } end |