Class: Remap::Selector::All
- Inherits:
-
Concrete
- Object
- Concrete
- Remap::Selector::All
- Defined in:
- lib/remap/selector/all.rb
Instance Method Summary collapse
Instance Method Details
#call(state, &block) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/remap/selector/all.rb', line 10 def call(state, &block) state.bind(quantifier: "*") do |enumerable, inner_state, &error| requirement[enumerable] do return error["Expected an enumeration"] end inner_state.map(&block) end end |