Class: Imasgen::MillionLiveCls

Inherits:
GeneratorBase show all
Defined in:
lib/imasgen/million_live.rb

Instance Attribute Summary

Attributes inherited from GeneratorBase

#auto_reset, #be_strict

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GeneratorBase

#hotchpotch, #name, #reset, #unique

Constructor Details

#initializeMillionLiveCls

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

.getyamlObject



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