Method: Puppet::Parser::Scope::ParameterScope#as_read_only
- Defined in:
- lib/puppet/parser/scope.rb
#as_read_only ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
255 256 257 258 259 260 261 262 263 |
# File 'lib/puppet/parser/scope.rb', line 255 def as_read_only read_only = @read_only @read_only = true begin yield ensure @read_only = read_only end end |