Exception: Crabfarm::Dsl::Surfer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Crabfarm::Dsl::Surfer::Error
- Defined in:
- lib/crabfarm/dsl/surfer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(_message, _ctx) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(_message, _ctx) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 |
# File 'lib/crabfarm/dsl/surfer.rb', line 11 def initialize(, _ctx) super @ctx = _ctx @source = _ctx.root.page_source rescue nil # cache page source for future reference end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
9 10 11 |
# File 'lib/crabfarm/dsl/surfer.rb', line 9 def source @source end |