Sha256: c46e4bff2c9a3193219ccdaf34e2838b916e50497c41b72e0a6b5d5b7bc03b5d

Contents?: true

Size: 489 Bytes

Versions: 24

Compression:

Stored size: 489 Bytes

Contents

module Rack::App::SingletonMethods::Extensions

  protected

  def applied_extensions
    @applied_extensions ||= []
  end

  def apply_extensions(*extension_names)
    Rack::App::Extension.apply_extensions(self,applied_extensions,extension_names)
  end

  alias apply_extension apply_extensions
  Rack::App::Utils.deprecate(self, :apply_extension, :apply_extensions, 2017, 01)

  def extensions(*extensions_names)
    apply_extensions(*extensions_names)
    applied_extensions
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rack-app-6.8.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.7.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.7.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.6.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.5.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.4.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.4.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.3.3 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.3.2 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.3.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.3.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.2.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.1.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-6.0.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.12.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.11.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.11.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.10.2 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.10.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.10.0 lib/rack/app/singleton_methods/extensions.rb