class Remap::Path::Output
Sets the value to a given path
@example Maps “A” to { a: { b: { c: “A” } } }
state = Remap::State.call("A") result = Remap::Path::Output.new([:a, :b, :c]).call(state) result.fetch(:value) # => { a: { b: { c: "A" } } }
Private Instance Methods
call(state)
click to toggle source
@return [State]
# File lib/remap/path/output.rb, line 19 def call(state) state.fmap do |value| selectors.hide(value) end end