Module: Puppet::Pops::Model::LocatableExpression::ClassModule
- Defined in:
- lib/puppet/pops/model/model.rb
Instance Method Summary collapse
-
#locator ⇒ Object
Go through the gymnastics of making either value or pattern settable with synchronization to the other form.
Instance Method Details
#locator ⇒ Object
Go through the gymnastics of making either value or pattern settable with synchronization to the other form. A derived value cannot be serialized and we want to serialize the pattern. When recreating the object we need to recreate it from the pattern string. The below sets both values if one is changed.
275 276 277 278 279 280 |
# File 'lib/puppet/pops/model/model.rb', line 275 def locator unless result = getLocator setLocator(result = Puppet::Pops::Parser::Locator.locator(source_text, source_ref(), line_offsets)) end result end |