lib/barista.rb in barista-0.1.4 vs lib/barista.rb in barista-0.1.5
- old
+ new
@@ -6,12 +6,16 @@
autoload :Compiler, 'barista/compiler'
autoload :Filter, 'barista/filter'
class << self
+ def configure
+ yield self if block_given?
+ end
+
def root
- @root ||= Rails.root.join("app", "scripts")
+ @root ||= Rails.root.join("app", "coffeescripts")
end
def root=(value)
@root = Pathname(value.to_s)
end
@@ -61,9 +65,13 @@
Rails.env.test? || Rails.env.development?
end
def no_wrap?
defined?(@no_wrap) && @no_wrap
+ end
+
+ def no_wrap!
+ self.no_wrap = true
end
def no_wrap=(value)
@no_wrap = !!value
end
\ No newline at end of file