Class: TreeHaver::ProcessImportInfo
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ProcessImportInfo
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#source ⇒ Object
Returns the value of attribute source.
-
#span ⇒ Object
Returns the value of attribute span.
Instance Method Summary collapse
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items
358 359 360 |
# File 'lib/tree_haver/contracts.rb', line 358 def items @items end |
#source ⇒ Object
Returns the value of attribute source
358 359 360 |
# File 'lib/tree_haver/contracts.rb', line 358 def source @source end |
#span ⇒ Object
Returns the value of attribute span
358 359 360 |
# File 'lib/tree_haver/contracts.rb', line 358 def span @span end |
Instance Method Details
#to_h ⇒ Object
359 360 361 362 363 364 365 |
# File 'lib/tree_haver/contracts.rb', line 359 def to_h { source: source, items: deep_dup(items || []), span: span.to_h } end |