Class: ErYamlParser

Inherits:
Object
  • Object
show all
Defined in:
lib/yaml2erd/er_yaml_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(yaml_file_path) ⇒ ErYamlParser

Returns a new instance of ErYamlParser.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/yaml2erd/er_yaml_parser.rb', line 13

def initialize(yaml_file_path)
  @yaml_file_path = yaml_file_path

  # yamlファイルopen
  set_yaml_data
  # modelのリスト
  set_model_list
  # YamlModelのハッシュ
  set_models
  # groups
  set_groups
  # groups_map
  set_groups_map
  # groups_bgcolor_map
  set_groups_bgcolor_map
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



8
9
10
# File 'lib/yaml2erd/er_yaml_parser.rb', line 8

def groups
  @groups
end

#groups_bgcolor_mapObject (readonly)

Returns the value of attribute groups_bgcolor_map.



11
12
13
# File 'lib/yaml2erd/er_yaml_parser.rb', line 11

def groups_bgcolor_map
  @groups_bgcolor_map
end

#groups_mapObject (readonly)

Returns the value of attribute groups_map.



10
11
12
# File 'lib/yaml2erd/er_yaml_parser.rb', line 10

def groups_map
  @groups_map
end

#model_listObject (readonly)

Returns the value of attribute model_list.



9
10
11
# File 'lib/yaml2erd/er_yaml_parser.rb', line 9

def model_list
  @model_list
end

#modelsObject (readonly)

Returns the value of attribute models.



7
8
9
# File 'lib/yaml2erd/er_yaml_parser.rb', line 7

def models
  @models
end

#yaml_file_pathObject (readonly)

Returns the value of attribute yaml_file_path.



6
7
8
# File 'lib/yaml2erd/er_yaml_parser.rb', line 6

def yaml_file_path
  @yaml_file_path
end