Class: ErYamlParser
- Inherits:
-
Object
- Object
- ErYamlParser
- Defined in:
- lib/yaml2erd/er_yaml_parser.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#groups_bgcolor_map ⇒ Object
readonly
Returns the value of attribute groups_bgcolor_map.
-
#groups_map ⇒ Object
readonly
Returns the value of attribute groups_map.
-
#model_list ⇒ Object
readonly
Returns the value of attribute model_list.
-
#models ⇒ Object
readonly
Returns the value of attribute models.
-
#yaml_file_path ⇒ Object
readonly
Returns the value of attribute yaml_file_path.
Instance Method Summary collapse
-
#initialize(yaml_file_path) ⇒ ErYamlParser
constructor
A new instance of ErYamlParser.
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
#groups ⇒ Object (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_map ⇒ Object (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_map ⇒ Object (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_list ⇒ Object (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 |
#models ⇒ Object (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_path ⇒ Object (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 |