"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/sass/script/value/helpers.rb" between
sass-3.5.5.tar.gz and sass-3.5.6.tar.gz

About: Sass (Syntactically Awesome StyleSheets) is a CSS preprocessor (extension language) that adds "power and elegance" to the basic CSS language.

helpers.rb  (sass-3.5.5):helpers.rb  (sass-3.5.6)
skipping to change at line 218 skipping to change at line 218
# Returns true when the literal is a string containing a calc(). # Returns true when the literal is a string containing a calc().
# #
# Use \{#special_number?} in preference to this. # Use \{#special_number?} in preference to this.
# #
# @param literal [Sass::Script::Value::Base] The value to check # @param literal [Sass::Script::Value::Base] The value to check
# @return Boolean # @return Boolean
def calc?(literal) def calc?(literal)
literal.is_a?(Sass::Script::Value::String) && literal.value =~ /calc\(/ literal.is_a?(Sass::Script::Value::String) && literal.value =~ /calc\(/
end end
# Returns true when the literal is a string containing a var().
#
# @param literal [Sass::Script::Value::Base] The value to check
# @return Boolean
def var?(literal)
literal.is_a?(Sass::Script::Value::String) && literal.value =~ /var\(/
end
# Returns whether the literal is a special CSS value that may evaluate to a # Returns whether the literal is a special CSS value that may evaluate to a
# number, such as `calc()` or `var()`. # number, such as `calc()` or `var()`.
# #
# @param literal [Sass::Script::Value::Base] The value to check # @param literal [Sass::Script::Value::Base] The value to check
# @return Boolean # @return Boolean
def special_number?(literal) def special_number?(literal)
literal.is_a?(Sass::Script::Value::String) && literal.value =~ /(calc|var) \(/ literal.is_a?(Sass::Script::Value::String) && literal.value =~ /(calc|var) \(/
end end
private private
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)