Skip to content

Commit

Permalink
fix refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking committed Dec 8, 2009
1 parent f6b627e commit f1e8bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cassandra_object/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def decode(str)
end

module FloatType
REGEX =
REGEX = /\A[-+]?\d+(\.\d+)\Z/
def encode(float)
return '' if float.nil?
raise ArgumentError.new("#{self} requires a Float") unless float.kind_of?(Float)
Expand Down

0 comments on commit f1e8bb8

Please sign in to comment.