Exception: Inform::Parser::ParserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/inform/parserm.h.rb

Overview

The ParserError error class

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.codeObject (readonly)

Returns the value of attribute code.



4828
4829
4830
# File 'lib/inform/parserm.h.rb', line 4828

def code
  @code
end

Class Method Details

.<(other) ⇒ Object



4834
4835
4836
# File 'lib/inform/parserm.h.rb', line 4834

def <(other)
  self.code < other.code
end

.>(other) ⇒ Object



4830
4831
4832
# File 'lib/inform/parserm.h.rb', line 4830

def >(other)
  self.code > other.code
end

.to_sObject



4838
4839
4840
# File 'lib/inform/parserm.h.rb', line 4838

def to_s
  "#{self.name}:#{self.code}"
end