module Compass::SassExtensions::Functions::Sprites::VariableReader

Provides a consistent interface for getting a variable in ruby from a keyword argument hash that accounts for underscores/dash equivalence and allows the caller to pass a symbol instead of a string.

Public Instance Methods

get_var(variable_name) click to toggle source
# File lib/compass/sass_extensions/functions/sprites.rb, line 8
def get_var(variable_name)
  self[variable_name.to_s.gsub(/-/,"_")]
end