module TokyoMetro::Modules::Static::ToFactory::Generate::Group::OneYaml::ClassMethods
Public Instance Methods
factory_for_generating_from_saved_file_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_file…'(単数形)であることに注意
# File lib/tokyo_metro/modules/static/to_factory/generate/group/one_yaml.rb, line 21 def factory_for_generating_from_saved_file_for_this_class factory_for_generating_from_saved_file end
generate_from_yaml()
click to toggle source
YAML ファイルからインスタンスを作成するメソッド @return [subclass of TokyoMetro::Static::Fundamental::Hash] @note 'generate_from_yaml'(単数形)であることに注意
# File lib/tokyo_metro/modules/static/to_factory/generate/group/one_yaml.rb, line 11 def generate_from_yaml factory_for_generating_from_saved_file_for_this_class.from_yaml end