Class: Assets::Environment

Inherits:
Object
  • Object
show all
Includes:
AbstractType
Defined in:
lib/assets/environment.rb,
lib/assets/environment/cache.rb,
lib/assets/environment/static.rb,
lib/assets/environment/dynamic.rb

Overview

Abstract base class for asset environments

Direct Known Subclasses

Cache, Dynamic, Static

Defined Under Namespace

Classes: Cache, Dynamic, Static

Instance Method Summary collapse

Instance Method Details

#getAsset?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return asset

Returns:

  • (Asset)

    if found

  • (nil)

    otherwise



31
# File 'lib/assets/environment.rb', line 31

abstract_method :get

#ruleRule?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return rule

Parameters:

  • name (String)

Returns:

  • (Rule)

    if found

  • (nil)

    otherwise



19
# File 'lib/assets/environment.rb', line 19

abstract_method :rule

#urlString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return URL

Parameters:

  • name (String)

Returns:

  • (String)

    url

Raises:

  • (AssetNotFoundError)

    otherwise



44
# File 'lib/assets/environment.rb', line 44

abstract_method :url