Sha256: 83acbe31fd6bbf0008028cfc07cd259f3e144cb634f5a473cebe8699a8c94f9b
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
module DataProvider class Provider attr_reader :options attr_reader :identifier attr_reader :block def initialize(identifier, opts = {}, block = nil) @identifier = identifier @options = opts.is_a?(Hash) ? opts : {} @block = block || Proc.new end alias_method :id, :identifier def requirements [options[:requires]].flatten.compact end end # module Provider end # module DataProvider
Version data entries
4 entries across 4 versions & 1 rubygems