Class: Imasgen::CinderellaGirlsCls
- Inherits:
-
GeneratorBase
- Object
- GeneratorBase
- Imasgen::CinderellaGirlsCls
- Defined in:
- lib/imasgen/cinderella_girls.rb
Instance Attribute Summary
Attributes inherited from GeneratorBase
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CinderellaGirlsCls
constructor
A new instance of CinderellaGirlsCls.
Methods inherited from GeneratorBase
#hotchpotch, #name, #reset, #unique
Constructor Details
#initialize ⇒ CinderellaGirlsCls
Returns a new instance of CinderellaGirlsCls.
6 7 8 9 10 |
# File 'lib/imasgen/cinderella_girls.rb', line 6 def initialize super yaml = YAML.load_file(__dir__ + '/dic/cinderella_girls.yml') @namedic = yaml[:cinderella_girls] end |
Class Method Details
.getyaml ⇒ Object
12 13 14 |
# File 'lib/imasgen/cinderella_girls.rb', line 12 def self.getyaml YAML.load_file(__dir__ + '/dic/cinderella_girls.yml')[:cinderella_girls] end |