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