compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/lists.rb
def first_value_of(list)
    if list.is_a?(Sass::Script::String)
      Sass::Script::String.new(list.value.split(/\s+/).first)
    elsif defined?(Sass::Script::List) && list.is_a?(Sass::Script::List)
      list.value.first
    else
      list
    end
  end
# returns the first value of a space delimited list.
returns the first value of a space delimited list.
returns the first value of a space delimited list .
def first_value_of(list)
    if list.is_a?(Sass::Script::String)
      Sass::Script::String.new(list.value.split(/\s+/).first)
    elsif defined?(Sass::Script::List) && list.is_a?(Sass::Script::List)
      list.value.first
    else
      list
    end
  end
def first_value_of ( list ) if list . is_a? ( Sass :: Script :: String ) Sass :: Script :: String . new ( list . value . split ( / \s + / ) . first ) elsif defined? ( Sass :: Script :: List ) && list . is_a? ( Sass :: Script :: List ) list . value . first else list end end
returns the first value of a space delimited list.
returns the first value of a space delimited list .
list