Sha256: 174079c84e910c6819dc1bf3fb6784d2de92e325891e4e33418fbf5bee60f784

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

# 列車種別の色を扱うクラスの名称を提供するモジュール
module TokyoMetro::ClassNameLibrary::Static::TrainType::Color

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::TrainType::Color
    end

    def hash_class
      ::TokyoMetro::Static::TrainType::Color::Hash
    end

    def info_class
      ::TokyoMetro::Static::TrainType::Color::Info
    end

    def factory_for_generating_from_saved_file
      ::TokyoMetro::Factory::Generate::Static::TrainType::Color::Hash
    end

    def factory_for_generating_from_hash
      ::TokyoMetro::Factory::Generate::Static::TrainType::Color::Info
    end

    private

    def yaml_file_basename
      "train_type/color"
    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/color.rb