Class: Imasgen::SideMCls

Inherits:
GeneratorBase show all
Defined in:
lib/imasgen/sidem.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

#initializeSideMCls

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

.getyamlObject



12
13
14
# File 'lib/imasgen/sidem.rb', line 12

def self.getyaml
  YAML.load_file(__dir__ + '/dic/sidem.yml')[:sidem]
end