Sha256: 9130ce55961a1389450571313ebc51d49d59eb0bc3c5cfec805c50ba820d52be

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

class TokyoMetro::Factory::Generate::Static::TrainType::Color::Info < TokyoMetro::Factory::Generate::Static::Color::Info

  include ::TokyoMetro::ClassNameLibrary::Static::TrainType::Color

  # 与えられたハッシュからインスタンスを作成するメソッド
  # @param same_as [String] 作成するインスタンスの ID キー
  # @param h [Hash] ハッシュ
  def initialize( same_as , h )
    @same_as = same_as
    super(h)
  end

  def self.info_class_for_this_class
    info_class
  end

  def self.hash_keys
    [ :same_as , :note ] + hash_keys_of_color
  end

  private

  def variables
    [ @same_as , get_hash_value( :note ) ] + color_variables
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/generate/static/train_type/color/info.rb