Module: DrawErd::Configure

Defined in:
lib/draw_erd/configure.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.attributesObject

Returns the value of attribute attributes.



4
5
6
# File 'lib/draw_erd/configure.rb', line 4

def attributes
  @attributes
end

.pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/draw_erd/configure.rb', line 4

def path
  @path
end

.titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/draw_erd/configure.rb', line 4

def title
  @title
end

Class Method Details

.keysObject



12
13
14
# File 'lib/draw_erd/configure.rb', line 12

def keys
  @keys ||= %i[path title attributes]
end

.setupObject



6
7
8
9
10
# File 'lib/draw_erd/configure.rb', line 6

def setup
  keys.each do |key|
    instance_variable_set(:"@#{key}", DrawErd::Default.send(key))
  end
end