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

Public Class Methods

process() click to toggle source
# File lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb, line 11
def self.process
  raise "The class method \'#{ __method __ }\' is not defined in \'#{ self }\'."
end

Private Class Methods

class_of_info_for_conversion() click to toggle source
# File lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb, line 25
def self.class_of_info_for_conversion
  ::TokyoMetro::Factory::Convert::Common::Api::MetaClass::Converter::InfoForConversion
end

Public Instance Methods

process() click to toggle source
# File lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb, line 3
def process
  if to_process?
    infos_for_conversion.each do | info_for_conversion |
      info_for_conversion.process.call( @info )
    end
  end
end

Private Instance Methods

infos_for_conversion() click to toggle source
# File lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb, line 21
def infos_for_conversion
  raise "The method \'#{ __method __ }\' is not defined in \'#{ self.class }\'."
end
to_process?() click to toggle source
# File lib/tokyo_metro/factory/convert/common/api/meta_class/converter.rb, line 17
def to_process?
  infos_for_conversion.all? { | item | item.match?( @info ) }
end