Sha256: 3a2fa437a193102ae9e962e1ef71f17de3824f11b90e7a45a296a95629146910

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 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

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

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rack-app-5.6.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.5.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.4.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.3.2 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.3.1 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.3.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.2.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.1.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.0.0 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.0.0.rc2 lib/rack/app/singleton_methods/extensions.rb
rack-app-5.0.0.rc1 lib/rack/app/singleton_methods/extensions.rb