Class: Remap::Rule::Wrap
- Inherits:
-
Remap::Rule
- Object
- Dry::Concrete
- Remap::Rule
- Remap::Rule::Wrap
- Defined in:
- lib/remap/rule/wrap.rb
Instance Method Summary collapse
-
#call(state) ⇒ State
Wraps the output from #rule in a #type.
Instance Method Details
#call(state) ⇒ State
Wraps the output from #rule in a #type
25 26 27 |
# File 'lib/remap/rule/wrap.rb', line 25 def call(state) rule.call(state).fmap { Array.wrap(_1) } end |