6 7 8 9 10 11 12
# File 'lib/thy/types/float.rb', line 6 def self.check(value) if value.is_a?(::Float) Result::Success else Result::Failure.new("Expected a Float, but got: #{value.inspect}") end end