Class: Serega::SeregaPlugins::Root::RootConfig
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Root::RootConfig
- Defined in:
- lib/serega/plugins/root/root.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts) ⇒ RootConfig
constructor
A new instance of RootConfig.
- #many ⇒ Object
- #many=(value) ⇒ Object
- #one ⇒ Object
- #one=(value) ⇒ Object
Constructor Details
#initialize(opts) ⇒ RootConfig
Returns a new instance of RootConfig.
52 53 54 |
# File 'lib/serega/plugins/root/root.rb', line 52 def initialize(opts) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
50 51 52 |
# File 'lib/serega/plugins/root/root.rb', line 50 def opts @opts end |
Instance Method Details
#many ⇒ Object
60 61 62 |
# File 'lib/serega/plugins/root/root.rb', line 60 def many opts.fetch(:many) end |
#many=(value) ⇒ Object
68 69 70 |
# File 'lib/serega/plugins/root/root.rb', line 68 def many=(value) opts[:many] = value end |
#one ⇒ Object
56 57 58 |
# File 'lib/serega/plugins/root/root.rb', line 56 def one opts.fetch(:one) end |
#one=(value) ⇒ Object
64 65 66 |
# File 'lib/serega/plugins/root/root.rb', line 64 def one=(value) opts[:one] = value end |