# File lib/librarian/dsl/target.rb, line 8 def initialize(target) singleton_class = class << self; self end singleton_class.class_eval do define_method(:source) do |options| target.source_from_options(options) end target.source_types.each do |source_type| name = source_type[0] define_method(name) do |*args| args.push({}) unless Hash === args.last target.source_from_params(name, *args) end end end end