Class: Bump::CLI::Definition
- Inherits:
-
Object
- Object
- Bump::CLI::Definition
- Defined in:
- lib/bump/cli/definition.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#external_references ⇒ Object
readonly
Returns the value of attribute external_references.
Instance Method Summary collapse
-
#initialize(path, import_external_references: false) ⇒ Definition
constructor
A new instance of Definition.
- #prepare! ⇒ Object
Constructor Details
#initialize(path, import_external_references: false) ⇒ Definition
Returns a new instance of Definition.
9 10 11 12 13 |
# File 'lib/bump/cli/definition.rb', line 9 def initialize(path, import_external_references: false) @path = path @import_external_references = import_external_references @external_references = References.new(root_path: find_base_path(path)) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/bump/cli/definition.rb', line 7 def content @content end |
#external_references ⇒ Object (readonly)
Returns the value of attribute external_references.
7 8 9 |
# File 'lib/bump/cli/definition.rb', line 7 def external_references @external_references end |