lib/tap.rb in markdown_exec-1.6 vs lib/tap.rb in markdown_exec-1.7
- old
+ new
@@ -105,11 +105,13 @@
fn = CVT.fetch(type, CVT[:else])
outs = []
outs.push(source.to_s) if source.present?
- vs = (caller_first || caller[0]).scan(/in `?(\S+)'$/).fetch(0, []).fetch(0, '')
+ vs = (caller_first || caller[0]).scan(/in `?(\S+)'$/).fetch(0, []).fetch(
+ 0, ''
+ )
outs.push("#{vs}()") if vs.present?
outs.push(tap_named_value(name_ || name, method(fn).call))
$stdout.puts(outs.join(' ')) if outs.length.positive?
@@ -140,10 +142,11 @@
self
end
# :reek:ControlParameter
# :reek:LongParameterList
- def tap_yaml(name_ = nil, caller_first: nil, mask: TDD, name: DN, source: nil)
+ def tap_yaml(name_ = nil, caller_first: nil, mask: TDD, name: DN,
+ source: nil)
tap_inspect name_, caller_first: (caller_first || caller[0]),
mask: mask, name: name, source: source, type: :yaml
end
private