Class: Julewire::Core::Fields::CarryProxy

Inherits:
SectionProxy
  • Object
show all
Defined in:
lib/julewire/core/fields/carry_proxy.rb

Instance Method Summary collapse

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

Raises:

  • (ArgumentError)


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