Class: Pendulum::DSL::Output::Base
- Inherits:
-
Object
- Object
- Pendulum::DSL::Output::Base
- Includes:
- Helper
- Defined in:
- lib/pendulum/dsl/output/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(&block) ⇒ Base
constructor
A new instance of Base.
- #to_url ⇒ Object
Methods included from Helper
Constructor Details
#initialize(&block) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/pendulum/dsl/output/base.rb', line 5 def initialize(&block) self.instance_eval(&block) if block_given? end |
Instance Method Details
#to_url ⇒ Object
9 10 11 |
# File 'lib/pendulum/dsl/output/base.rb', line 9 def to_url raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |