Class: Ast::Merge::PCS
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::PCS
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#base_revision ⇒ Object
Returns the value of attribute base_revision.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#pcs_id ⇒ Object
Returns the value of attribute pcs_id.
-
#tree_id ⇒ Object
Returns the value of attribute tree_id.
Instance Method Summary collapse
Instance Attribute Details
#base_revision ⇒ Object
Returns the value of attribute base_revision
293 294 295 |
# File 'lib/ast/merge.rb', line 293 def base_revision @base_revision end |
#constraints ⇒ Object
Returns the value of attribute constraints
293 294 295 |
# File 'lib/ast/merge.rb', line 293 def constraints @constraints end |
#pcs_id ⇒ Object
Returns the value of attribute pcs_id
293 294 295 |
# File 'lib/ast/merge.rb', line 293 def pcs_id @pcs_id end |
#tree_id ⇒ Object
Returns the value of attribute tree_id
293 294 295 |
# File 'lib/ast/merge.rb', line 293 def tree_id @tree_id end |
Instance Method Details
#to_h ⇒ Object
294 295 296 297 298 299 300 301 |
# File 'lib/ast/merge.rb', line 294 def to_h { pcs_id: pcs_id, tree_id: tree_id, base_revision: base_revision, constraints: (constraints || []).map(&:to_h) } end |