Exception: Goat::DOMTools::InvalidBodyError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/goat/html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ InvalidBodyError

Returns a new instance of InvalidBodyError.



179
180
181
182
# File 'lib/goat/html.rb', line 179

def initialize(body)
  super("Invalid body: #{body.inspect}")
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



177
178
179
# File 'lib/goat/html.rb', line 177

def body
  @body
end