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

- old
+ new

@@ -1,17 +1,11 @@ module Transcriber class Resource module Parser module Embeddable def parse(value, resource = nil) - parsed_value = parse? ? resource_class.parse(value) : value + parsed_value = raw? ? resource_class.parse(value) : value one? ? parsed_value.first : parsed_value - end - - private - - def parse? - ![Hash, Array].include?(resource_class) end end end end end