Class: Shep::BoolBox
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_s ⇒ Object
72
|
# File 'lib/shep/typeboxes.rb', line 72
def self.to_yard_s = "Boolean"
|
Instance Method Details
#check(v) ⇒ Object
74
|
# File 'lib/shep/typeboxes.rb', line 74
def check(v) = assert_type(v, TrueClass, FalseClass)
|
#get_for_json ⇒ Object
73
|
# File 'lib/shep/typeboxes.rb', line 73
def get_for_json = @value
|