Class: TreeHaver::SourceFragment
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::SourceFragment
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
Returns the value of attribute available.
-
#byte_length ⇒ Object
Returns the value of attribute byte_length.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#span ⇒ Object
Returns the value of attribute span.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#available ⇒ Object
Returns the value of attribute available
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def available @available end |
#byte_length ⇒ Object
Returns the value of attribute byte_length
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def byte_length @byte_length end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def diagnostics @diagnostics end |
#span ⇒ Object
Returns the value of attribute span
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def span @span end |
#strategy ⇒ Object
Returns the value of attribute strategy
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def strategy @strategy end |
#text ⇒ Object
Returns the value of attribute text
580 581 582 |
# File 'lib/tree_haver/contracts.rb', line 580 def text @text end |
Instance Method Details
#to_h ⇒ Object
581 582 583 584 585 586 587 588 589 590 |
# File 'lib/tree_haver/contracts.rb', line 581 def to_h { text: text, span: span.to_h, available: available, strategy: strategy, byte_length: byte_length, diagnostics: diagnostics } end |