lib/transcriber/resource/parser/embeddable.rb in transcriber-0.0.6 vs lib/transcriber/resource/parser/embeddable.rb in transcriber-0.0.7

- old
+ new

@@ -1,10 +1,10 @@ module Transcriber class Resource module Parser module Embeddable def parse(value, resource = nil) - parsed_value = raw? ? resource_class.parse(value) : value + parsed_value = raw? ? value : resource_class.parse(value) one? ? parsed_value.first : parsed_value end end end end