compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/constants.rb
def opposite_position(position)
      opposite = position.value.split(/ +/).map do |pos|
        case pos
        when "top" then "bottom"
        when "bottom" then "top"
        when "left" then "right"
        when "right" then "left"
        when "center" then "center"
        else
          pos
        end
      end
      Sass::Script::String.new(opposite.join(" "), position.type)
    end
# returns the opposite position of a side or corner.
returns the opposite position of a side or corner.
returns the opposite position of a side or corner .
def opposite_position(position)
      opposite = position.value.split(/ +/).map do |pos|
        case pos
        when "top" then "bottom"
        when "bottom" then "top"
        when "left" then "right"
        when "right" then "left"
        when "center" then "center"
        else
          pos
        end
      end
      Sass::Script::String.new(opposite.join(" "), position.type)
    end
def opposite_position ( position ) opposite = position . value . split ( /  + / ) . map do | pos | case pos when "top" then "bottom" when "bottom" then "top" when "left" then "right" when "right" then "left" when "center" then "center" else pos end end Sass :: Script :: String . new ( opposite . join ( " " ) , position . type ) end
returns the opposite position of a side or corner.
returns the opposite position of a side or corner .
position