Exception: MiniHTML::ParseError
- Defined in:
- lib/minihtml.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(*errors) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(*errors) ⇒ ParseError
Returns a new instance of ParseError.
16 17 18 19 |
# File 'lib/minihtml.rb', line 16 def initialize(*errors) @errors = errors super("Parsing failed with #{errors.length} error#{"s" if errors.length > 1}: #{errors.join(", ")}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
14 15 16 |
# File 'lib/minihtml.rb', line 14 def errors @errors end |