Class: Allen::AssetBundle

Inherits:
Struct
  • Object
show all
Defined in:
lib/allen/asset_bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



2
3
4
# File 'lib/allen/asset_bundle.rb', line 2

def input
  @input
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



2
3
4
# File 'lib/allen/asset_bundle.rb', line 2

def output
  @output
end

#preprocessorObject

Returns the value of attribute preprocessor

Returns:

  • (Object)

    the current value of preprocessor



2
3
4
# File 'lib/allen/asset_bundle.rb', line 2

def preprocessor
  @preprocessor
end

Instance Method Details

#buildObject Also known as: build!



3
4
5
# File 'lib/allen/asset_bundle.rb', line 3

def build
  Bundler.with_clean_env { preprocessor.build(input, output) }
end

#compressObject Also known as: compress!



7
8
9
# File 'lib/allen/asset_bundle.rb', line 7

def compress
  Bundler.with_clean_env { preprocessor.compress(input, output) }
end

#watchObject Also known as: watch!



11
12
13
# File 'lib/allen/asset_bundle.rb', line 11

def watch
  Bundler.with_clean_env { preprocessor.watch(input, output) }
end