Class: Serega::SeregaPlugins::Formatters::FormattersConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/plugins/formatters/formatters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ FormattersConfig

Returns a new instance of FormattersConfig.



24
25
26
# File 'lib/serega/plugins/formatters/formatters.rb', line 24

def initialize(opts)
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



22
23
24
# File 'lib/serega/plugins/formatters/formatters.rb', line 22

def opts
  @opts
end

Instance Method Details

#add(formatters) ⇒ Object



28
29
30
31
32
# File 'lib/serega/plugins/formatters/formatters.rb', line 28

def add(formatters)
  formatters.each_pair do |key, value|
    opts[key] = value
  end
end