class Lookbook::StringValueCaster

def initialize(value, type = "string")

def initialize(value, type = "string")
  @value = value.to_s
  @type = type.to_s.downcase
  @cast_method = :"cast_to_#{@type}"
  unless respond_to?(@cast_method)
    raise ArgumentError.new "'#{@type}' is not a valid value type to cast to."
  end
end