Class: DMap::Properties::Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/dmap/properties/integer.rb

Direct Known Subclasses

I, Int

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parent_nameObject



8
9
10
# File 'lib/dmap/properties/integer.rb', line 8

def self.parent_name
  "Integer"
end

Instance Method Details

#length(value) ⇒ Object



4
5
6
# File 'lib/dmap/properties/integer.rb', line 4

def length(value)
  false unless (value.is_a(Fixnum) || value.is_a(Integer))
end