Class: HadoopDsl::BaseMapRed
- Inherits:
-
Object
- Object
- HadoopDsl::BaseMapRed
- Extended by:
- Forwardable
- Includes:
- DslController
- Defined in:
- lib/core.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#emitted ⇒ Object
readonly
Returns the value of attribute emitted.
Instance Method Summary collapse
- #emit(hash) ⇒ Object
-
#initialize(script, model) ⇒ BaseMapRed
constructor
A new instance of BaseMapRed.
Methods included from DslController
Methods included from DslElement
Constructor Details
#initialize(script, model) ⇒ BaseMapRed
Returns a new instance of BaseMapRed.
35 36 37 38 39 |
# File 'lib/core.rb', line 35 def initialize(script, model) @script, @model = script, model @model.controller = self @emitted = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement
Instance Attribute Details
#emitted ⇒ Object (readonly)
Returns the value of attribute emitted.
33 34 35 |
# File 'lib/core.rb', line 33 def emitted @emitted end |
Instance Method Details
#emit(hash) ⇒ Object
41 |
# File 'lib/core.rb', line 41 def emit(hash) @emitted << hash end |