Class: Guideline::Error
- Inherits:
-
Object
- Object
- Guideline::Error
- Defined in:
- lib/guideline/error.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options) ⇒ Error
constructor
A new instance of Error.
- #render ⇒ Object
Constructor Details
#initialize(options) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/guideline/error.rb', line 5 def initialize() @line = [:line] @message = [:message] @path = [:path] @name = [:name] end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/guideline/error.rb', line 3 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/guideline/error.rb', line 3 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/guideline/error.rb', line 3 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/guideline/error.rb', line 3 def path @path end |
Instance Method Details
#render ⇒ Object
12 13 14 |
# File 'lib/guideline/error.rb', line 12 def render "%4d: %s" % [line, ] end |