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.



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

def initialize(opts)
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



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

def opts
  @opts
end

Instance Method Details

#add(formatters) ⇒ Object



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

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