lib/comma/extractors.rb in crafterm-comma-0.1.1 vs lib/comma/extractors.rb in crafterm-comma-0.1.2
- old
+ new
@@ -43,11 +43,13 @@
case arg
when Hash
arg.each do |k, v|
@results << @instance.send(sym).send(k).to_s
end
- when Symbol, String
+ when Symbol
@results << @instance.send(sym).send(arg).to_s
+ when String
+ @results << @instance.send(sym).to_s
else
raise "Unknown data symbol #{arg.inspect}"
end
end
end