Class: Shep::NumBox

Inherits:
TypeBox show all
Defined in:
lib/shep/typeboxes.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TypeBox

#==, #get, #initialize, #inspect, #set, #set?, #set_from_json, #to_s, #unset?

Constructor Details

This class inherits a constructor from Shep::TypeBox

Class Method Details

.to_yard_sObject

a lie, but convenient



86
# File 'lib/shep/typeboxes.rb', line 86

def self.to_yard_s = "Integer"   # a lie, but convenient

Instance Method Details

#check(v) ⇒ Object



88
# File 'lib/shep/typeboxes.rb', line 88

def check(v) = assert_type(v, Integer, Float)

#get_for_jsonObject



87
# File 'lib/shep/typeboxes.rb', line 87

def get_for_json = @value