Sha256: b40054059505f739bdf051f46c842ac5308a64093a0ea09ae702c1daddf34ad8
Contents?: true
Size: 392 Bytes
Versions: 10
Compression:
Stored size: 392 Bytes
Contents
module ActiveFedora::Aggregation # This is an Adapter to allow a Decorator to respond to the interface #new() # but still require other arguments to instantiate. class DecoratorWithArguments attr_reader :decorator, :args def initialize(decorator, *args) @decorator = decorator @args = args end def new(obj) decorator.new(obj, *args) end end end
Version data entries
10 entries across 10 versions & 1 rubygems