Exception: Goat::DOMTools::InvalidBodyError
- Defined in:
- lib/goat/html.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ InvalidBodyError
constructor
A new instance of InvalidBodyError.
Constructor Details
#initialize(body) ⇒ InvalidBodyError
Returns a new instance of InvalidBodyError.
185 186 187 188 |
# File 'lib/goat/html.rb', line 185 def initialize(body) super("Invalid body: #{body.inspect}") @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
183 184 185 |
# File 'lib/goat/html.rb', line 183 def body @body end |