Sha256: d20a682731a57b5c9eb3af6f15848e6bd1a0160704a7e3ae048f50f48a7d6611
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
require "delegate" require_relative "adapters" module Ddr module Extraction class Adapter < ::SimpleDelegator class << self # Accessors for adapter types attr_accessor :text, :metadata def build_adapter(type) adapter_name = send(type) adapter = Adapters.get_adapter(adapter_name) new(adapter.new) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-extraction-0.2.1 | lib/ddr/extraction/adapter.rb |
ddr-extraction-0.2.0 | lib/ddr/extraction/adapter.rb |