Sha256: 3443c23564f095f2ff4ffdbf9fd9b2a4665c2d51cf65d0b1ac52a46eb43e9317

Contents?: true

Size: 278 Bytes

Versions: 9

Compression:

Stored size: 278 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
transcriber-0.0.15 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.14 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.13 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.12 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.11 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.10 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.9 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.8 lib/transcriber/resource/parser/embeddable.rb
transcriber-0.0.7 lib/transcriber/resource/parser/embeddable.rb