Module: Serega::SeregaPlugins::Root::ConfigInstanceMethods

Defined in:
lib/serega/plugins/root/root.rb

Instance Method Summary collapse

Instance Method Details

#rootObject



74
75
76
# File 'lib/serega/plugins/root/root.rb', line 74

def root
  @root ||= RootConfig.new(opts.fetch(:root))
end

#root=(value) ⇒ Object



78
79
80
81
# File 'lib/serega/plugins/root/root.rb', line 78

def root=(value)
  root.one = value.fetch(:one)
  root.many = value.fetch(:many)
end