vendor/bundle/ruby/2.1.0/gems/stamp-0.5.0/lib/stamp/translator.rb
# Transforms tokens that look like date/time parts to emitter objects.
Transforms tokens that look like date/time parts to emitter objects.
Transforms tokens that look like date / time parts to emitter objects .
def build_emitters(tokens)
      previous_part = nil
      tokens.map do |token|
        emitter = yield(token, previous_part)
        previous_part = emitter.field unless emitter.nil?
        emitter || Emitters::String.new(token)
      end
    end
def build_emitters ( tokens ) previous_part = nil tokens . map do | token | emitter = yield ( token , previous_part ) previous_part = emitter . field unless emitter . nil? emitter || Emitters :: String . new ( token ) end end
Transforms tokens that look like date/time parts to emitter objects.
Transforms tokens that look like date / time parts to emitter objects .
tokens