module TokyoMetro::Modules::Static::ToFactory::Generate::Group::MultipleYamls::ClassMethods
Public Instance Methods
factory_for_generating_from_saved_files_for_this_class()
click to toggle source
複数のファイルからインスタンスを生成する Factory
Pattern のクラスの名称 @return [Const (class)] @note
原則として、このモジュール {TokyoMetro::Modules::Static::ToFactory::Generate::Group::OneYaml} が include されているクラスのクラスメソッド factory_for_generating_from_saved_file(クラスを表す定数)が呼び出される。 必要であればサブクラスで上書きする。
@note '…saved_files…'(単数形)であることに注意
# File lib/tokyo_metro/modules/static/to_factory/generate/group/multiple_yamls.rb, line 21 def factory_for_generating_from_saved_files_for_this_class factory_for_generating_from_saved_files end
generate_from_yamls()
click to toggle source
複数の YAML ファイルからインスタンスを作成するメソッド @return [subclass of TokyoMetro::Static::Fundamental::Hash] @note 'generate_from_yamls'(複数形)であることに注意
# File lib/tokyo_metro/modules/static/to_factory/generate/group/multiple_yamls.rb, line 11 def generate_from_yamls factory_for_generating_from_saved_files_for_this_class.from_yamls end