Class: HolePunch::BaseDSL
- Inherits:
-
Object
- Object
- HolePunch::BaseDSL
- Defined in:
- lib/holepunch/dsl.rb
Direct Known Subclasses
Instance Method Summary collapse
- #env ⇒ Object
- #eval_dsl(filename = nil, &block) ⇒ Object
-
#initialize(env, model) ⇒ BaseDSL
constructor
A new instance of BaseDSL.
Constructor Details
#initialize(env, model) ⇒ BaseDSL
Returns a new instance of BaseDSL.
25 26 27 28 |
# File 'lib/holepunch/dsl.rb', line 25 def initialize(env, model) @env = env @model = model end |
Instance Method Details
#env ⇒ Object
39 40 41 42 |
# File 'lib/holepunch/dsl.rb', line 39 def env raise EnvNotDefinedError, 'env not defined' if @env.nil? @env end |