Class: Shep::NumBox
Class Method Summary collapse
-
.to_yard_s ⇒ Object
a lie, but convenient.
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_s ⇒ Object
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_json ⇒ Object
87 |
# File 'lib/shep/typeboxes.rb', line 87 def get_for_json = @value |