Sha256: db72a916d1be015b1074666ee8e7b7059a461907b1973802920b5e22e19707ba

Contents?: true

Size: 219 Bytes

Versions: 7

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

module ActiveDecorator
  def self.config
    @_config ||= Struct.new(:decorator_suffix).new
  end

  def self.configure
    yield config
  end

  config.decorator_suffix = 'Decorator'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_decorator-1.4.1 lib/active_decorator/config.rb
active_decorator-1.4.0 lib/active_decorator/config.rb
active_decorator-1.3.4 lib/active_decorator/config.rb
active_decorator-1.3.3 lib/active_decorator/config.rb
active_decorator-1.3.2 lib/active_decorator/config.rb
active_decorator-1.3.1 lib/active_decorator/config.rb
active_decorator-1.3.0 lib/active_decorator/config.rb