Exception: Puppet::Pops::Evaluator::PuppetStopIteration

Inherits:
StopIteration
  • Object
show all
Defined in:
lib/puppet/pops/evaluator/closure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, line, pos = nil) ⇒ PuppetStopIteration

Returns a new instance of PuppetStopIteration.



31
32
33
34
35
# File 'lib/puppet/pops/evaluator/closure.rb', line 31

def initialize(file, line, pos = nil)
  @file = file
  @line = line
  @pos = pos
end

Instance Attribute Details

#fileObject (readonly)



27
28
29
# File 'lib/puppet/pops/evaluator/closure.rb', line 27

def file
  @file
end

#lineObject (readonly)



28
29
30
# File 'lib/puppet/pops/evaluator/closure.rb', line 28

def line
  @line
end

#posObject (readonly)



29
30
31
# File 'lib/puppet/pops/evaluator/closure.rb', line 29

def pos
  @pos
end

Instance Method Details

#messageObject



37
38
39
# File 'lib/puppet/pops/evaluator/closure.rb', line 37

def message
  "break() from context where this is illegal"
end