Class: Julewire::Core::Fields::CarryProxy
- Inherits:
-
SectionProxy
- Object
- SectionProxy
- Julewire::Core::Fields::CarryProxy
- Defined in:
- lib/julewire/core/fields/carry_proxy.rb
Instance Method Summary collapse
- #delete(*path) ⇒ Object
-
#initialize(store) ⇒ CarryProxy
constructor
A new instance of CarryProxy.
- #without(*path) ⇒ Object
Constructor Details
#initialize(store) ⇒ CarryProxy
Returns a new instance of CarryProxy.
7 |
# File 'lib/julewire/core/fields/carry_proxy.rb', line 7 def initialize(store) = super(store, :carry) |
Instance Method Details
#delete(*path) ⇒ Object
9 10 11 12 |
# File 'lib/julewire/core/fields/carry_proxy.rb', line 9 def delete(*path) @store.delete_carry(path) self end |
#without(*path) ⇒ Object
14 15 16 17 18 |
# File 'lib/julewire/core/fields/carry_proxy.rb', line 14 def without(*path, &) raise ArgumentError, "block required" unless block_given? @store.without_carry(path, &) end |