Class: Juggle::Op::Base
- Inherits:
-
Object
- Object
- Juggle::Op::Base
- Defined in:
- lib/juggle/ops/base.rb
Defined Under Namespace
Classes: NotImplemented
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#opts ⇒ Object
Returns the value of attribute opts.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env, opts, *args, &blk) ⇒ Base
constructor
A new instance of Base.
- #make(*args, &blk) ⇒ Object
- #manifest ⇒ Object
- #render ⇒ Object
Constructor Details
#initialize(env, opts, *args, &blk) ⇒ Base
Returns a new instance of Base.
13 14 15 16 17 |
# File 'lib/juggle/ops/base.rb', line 13 def initialize(env, opts, *args, &blk) self.env = env self.opts = self.class.default_opts.merge!(opts) make(*args, &blk) end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
5 6 7 |
# File 'lib/juggle/ops/base.rb', line 5 def env @env end |
#opts ⇒ Object
Returns the value of attribute opts.
5 6 7 |
# File 'lib/juggle/ops/base.rb', line 5 def opts @opts end |
Class Method Details
.default_opts ⇒ Object
9 10 11 |
# File 'lib/juggle/ops/base.rb', line 9 def self.default_opts {} end |
Instance Method Details
#make(*args, &blk) ⇒ Object
19 20 21 |
# File 'lib/juggle/ops/base.rb', line 19 def make(*args, &blk) raise NotImplemented end |
#manifest ⇒ Object
27 28 29 |
# File 'lib/juggle/ops/base.rb', line 27 def manifest raise NotImplemented end |
#render ⇒ Object
23 24 25 |
# File 'lib/juggle/ops/base.rb', line 23 def render raise NotImplemented end |