Exception: Comet::HtmlParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/comet-html/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ HtmlParseError

Returns a new instance of HtmlParseError.



34
35
36
37
# File 'lib/comet-html/generator.rb', line 34

def initialize error
  @message = error.message
  @line    = error.line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



32
33
34
# File 'lib/comet-html/generator.rb', line 32

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message.



32
33
34
# File 'lib/comet-html/generator.rb', line 32

def message
  @message
end