Exception: MOF::Helper::Error
- Inherits:
-
SyntaxError
- Object
- SyntaxError
- MOF::Helper::Error
- Defined in:
- lib/mof/helper.rb
Overview
to be used to flag @style issues
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, lineno, line, msg) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(name, lineno, line, msg) ⇒ Error
Returns a new instance of Error.
121 122 123 |
# File 'lib/mof/helper.rb', line 121 def initialize name, lineno, line, msg @name,@lineno,@line,@msg = name, lineno, line, msg end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
120 121 122 |
# File 'lib/mof/helper.rb', line 120 def line @line end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
120 121 122 |
# File 'lib/mof/helper.rb', line 120 def lineno @lineno end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
120 121 122 |
# File 'lib/mof/helper.rb', line 120 def msg @msg end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
120 121 122 |
# File 'lib/mof/helper.rb', line 120 def name @name end |
Instance Method Details
#to_s ⇒ Object
124 125 126 |
# File 'lib/mof/helper.rb', line 124 def to_s "#{@name}:#{@lineno}: #{line}\n#{msg}" end |