Sha256: 7b0da01b27794f83c4557bbd4fae26a0f854d0af3e3709b404e12bfe087daf1b

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# 列車種別の情報を扱うクラスの名称を提供するモジュール (1)
module TokyoMetro::ClassNameLibrary::Static::TrainType::Custom::OtherOperator

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::TrainType::Custom::OtherOperator
    end

    def hash_class
      ::TokyoMetro::Static::TrainType::Custom::OtherOperator::Hash
    end

    def info_class
      ::TokyoMetro::Static::TrainType::Custom::OtherOperator::Info
    end

    def factory_for_generating_from_saved_files
      ::TokyoMetro::Factory::Generate::Static::TrainType::Custom::OtherOperator::Hash
    end

    def factory_for_generating_from_each_saved_file
      ::TokyoMetro::Factory::Generate::Static::TrainType::Custom::OtherOperator::Hash::EachFile
    end

    def factory_for_generating_from_hash
      ::TokyoMetro::Factory::Generate::Static::TrainType::Custom::OtherOperator::Info
    end

    private

    # Hash のインスタンスを作成するときに必要な YAML ファイルのリスト
    # @return [::Array <String (filename)>]
    def yaml_files
      dirname_other_operator = "#{::TokyoMetro::dictionary_dir}/train_type/other_operator"
      Dir.glob( "#{dirname_other_operator}/**.yaml" )
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/class_name_library/static/train_type/custom/other_operator.rb