Module: MapRedus::Support

Defined in:
lib/mapredus/support.rb

Defined Under Namespace

Modules: ClassMethods Classes: DuplicateProcessDefinitionError, MapRedusRunnerError, Runner

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(model) ⇒ Object



52
53
54
# File 'lib/mapredus/support.rb', line 52

def self.included(model)
  model.extend ClassMethods
end

Instance Method Details

#mapreduceObject



21
22
23
# File 'lib/mapredus/support.rb', line 21

def mapreduce
  @mapreduce_runner ||= Runner.new(self.class.to_s.gsub(/\W/,"_"))
end