Class: GeoSpider::Extractors::Base
- Inherits:
-
Object
- Object
- GeoSpider::Extractors::Base
- Defined in:
- lib/geo-spider/extractors/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(element) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(element) ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'lib/geo-spider/extractors/base.rb', line 7 def initialize(element) raise InvalidElement if element.class != Hpricot::Elem || element.nil? @element = element end |