Exception: Comet::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(el, message) ⇒ ParseError

Returns a new instance of ParseError.



21
22
23
24
# File 'lib/comet-html/generator.rb', line 21

def initialize el, message
  @el = el
  @message = message
end

Instance Attribute Details

#elObject (readonly)

Returns the value of attribute el.



19
20
21
# File 'lib/comet-html/generator.rb', line 19

def el
  @el
end

#messageObject (readonly)

Returns the value of attribute message.



19
20
21
# File 'lib/comet-html/generator.rb', line 19

def message
  @message
end

Instance Method Details

#lineObject



26
27
28
# File 'lib/comet-html/generator.rb', line 26

def line
  el.line
end