Module: BistroCar

Defined in:
lib/bistro_car.rb,
lib/bistro_car/bundle.rb,
lib/bistro_car/helpers.rb

Defined Under Namespace

Modules: Helpers Classes: Bundle, BundleController, Engine

Constant Summary collapse

VERSION =
"0.2.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.minifyObject

Returns the value of attribute minify.



23
24
25
# File 'lib/bistro_car.rb', line 23

def minify
  @minify
end

.modeObject

Returns the value of attribute mode.



23
24
25
# File 'lib/bistro_car.rb', line 23

def mode
  @mode
end

Class Method Details

.compile(source) ⇒ Object



16
17
18
19
20
21
# File 'lib/bistro_car.rb', line 16

def compile(source)
  file = Tempfile.new('script.coffee')
  file.write(source)
  file.close
  %x(coffee -p #{file.path})
end