Sha256: 4b906fd05684cff21e52d6e64ac451541e439ed020c98c058366f1b33b58e406

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

# 方面の情報を扱うクラスの名称を提供するモジュール
module TokyoMetro::ClassNameLibrary::Static::RailwayDirection

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::RailwayDirection
    end

    # ハッシュのクラス
    # @return [Const (class name)]
    def hash_class
      ::TokyoMetro::Static::RailwayDirection::Hash
    end

    # ハッシュの値のクラス
    # @return [Const (class name)]
    def info_class
      ::TokyoMetro::Static::RailwayDirection::Info
    end

    def factory_for_generating_from_saved_file
      ::TokyoMetro::Factory::Generate::Static::RailwayDirection::Hash
    end

    def factory_for_generating_from_hash
      ::TokyoMetro::Factory::Generate::Static::RailwayDirection::Info
    end

    def factory_for_seeding_hash
      ::TokyoMetro::Factory::Seed::Static::RailwayDirection::Hash
    end

    def factory_for_seeding_info
      ::TokyoMetro::Factory::Seed::Static::RailwayDirection::Info
    end

    def db_instance_class
      ::RailwayDirection
    end

    private

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