Class: CARPS::Sheet::Int

Inherits:
Type
  • Object
show all
Defined in:
lib/carps/mod/sheet/type.rb

Overview

Accept Fixnums

Instance Method Summary collapse

Methods inherited from Type

#coercion, #empty, #initialize, #verify

Constructor Details

This class inherits a constructor from CARPS::Sheet::Type

Instance Method Details

#valid(val) ⇒ Object



81
82
83
# File 'lib/carps/mod/sheet/type.rb', line 81

def valid val
   val.class == Fixnum
end