lib/dassets/config.rb in dassets-0.10.1 vs lib/dassets/config.rb in dassets-0.11.0
- old
+ new
@@ -19,11 +19,15 @@
@sources = []
@combinations = Hash.new{ |h, k| [k] } # digest pass-thru if none defined
end
def base_url(value = nil)
- @base_url = value if !value.nil?
+ set_base_url(value) if !value.nil?
@base_url
+ end
+
+ def set_base_url(value)
+ @base_url = value
end
def source(path, &block)
@sources << Source.new(path).tap{ |s| block.call(s) if block }
end