Class: Haml2html::Diagnostic
- Inherits:
-
Struct
- Object
- Struct
- Haml2html::Diagnostic
- Defined in:
- lib/haml2html/diagnostic.rb
Instance Attribute Summary collapse
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#feature ⇒ Object
Returns the value of attribute feature
4 5 6 |
# File 'lib/haml2html/diagnostic.rb', line 4 def feature @feature end |
#filename ⇒ Object
Returns the value of attribute filename
4 5 6 |
# File 'lib/haml2html/diagnostic.rb', line 4 def filename @filename end |
#line ⇒ Object
Returns the value of attribute line
4 5 6 |
# File 'lib/haml2html/diagnostic.rb', line 4 def line @line end |
#message ⇒ Object
Returns the value of attribute message
4 5 6 |
# File 'lib/haml2html/diagnostic.rb', line 4 def @message end |
Instance Method Details
#to_s ⇒ Object
5 6 7 8 9 |
# File 'lib/haml2html/diagnostic.rb', line 5 def to_s location = [filename, line].compact.join(":") location = "haml" if location.empty? "#{location}: #{feature}: #{}" end |