Class: Clusta::Transforms::Pm3d::Mapper

Inherits:
Wukong::Streamer::Base
  • Object
show all
Defined in:
lib/clusta/transforms/pm3d.rb

Instance Method Summary collapse

Instance Method Details

#process(*record) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/clusta/transforms/pm3d.rb', line 9

def process *record
  if record.first && record.first =~ /[^\d]/
    emit record[1..-1]
  else
    emit record
  end
end