class MirrorMirror::Transformation::Float

Public Instance Methods

transform_value(name, value) click to toggle source
# File lib/mirror-mirror/transformation/float.rb, line 7
def transform_value(name, value)
  case value
  when "left"
    "right"
  when "right"
    "left"
  else
    value
  end
end
transform_value?(name) click to toggle source
# File lib/mirror-mirror/transformation/float.rb, line 3
def transform_value?(name)
  name == "float" || name == "clear"
end