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.
99 100 101 |
# File 'lib/mof/helper.rb', line 99 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.
98 99 100 |
# File 'lib/mof/helper.rb', line 98 def line @line end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
98 99 100 |
# File 'lib/mof/helper.rb', line 98 def lineno @lineno end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
98 99 100 |
# File 'lib/mof/helper.rb', line 98 def msg @msg end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
98 99 100 |
# File 'lib/mof/helper.rb', line 98 def name @name end |
Instance Method Details
#to_s ⇒ Object
102 103 104 |
# File 'lib/mof/helper.rb', line 102 def to_s "#{@name}:#{@lineno}: #{line}\n#{msg}" end |