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