Sha256: 7149bad5c4b0842c0a79d751ebeba5b99b34c78a2d8fa09930a1ba57f6b00c4d

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

class TokyoMetro::Factory::Convert::Common::Api::MetaClass::Converter

  def process
    if to_process?
      infos_for_conversion.each do | info_for_conversion |
        info_for_conversion.process.call( @info )
      end
    end
  end

  def self.process
    raise "The class method \'#{ __method __ }\' is not defined in \'#{ self }\'."
  end

  private

  def to_process?
    infos_for_conversion.all? { | item | item.match?( @info ) }
  end

  def infos_for_conversion
    raise "The method \'#{ __method __ }\' is not defined in \'#{ self.class }\'."
  end

  def self.class_of_info_for_conversion
    ::TokyoMetro::Factory::Convert::Common::Api::MetaClass::Converter::InfoForConversion
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb