Class: Earl::URL
- Inherits:
-
HashInquirer
- Object
- Hash
- HashInquirer
- Earl::URL
- Defined in:
- lib/earl/url.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ URL
constructor
A new instance of URL.
- #to_s ⇒ Object
Methods inherited from HashInquirer
Constructor Details
#initialize(source) ⇒ URL
Returns a new instance of URL.
3 4 5 |
# File 'lib/earl/url.rb', line 3 def initialize( source ) super parser.parse( source ).resolve rescue raise InvalidURLError end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Earl::HashInquirer
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/earl/url.rb', line 21 def to_s assembler.assemble self end |