lib/gloo/objs/basic/boolean.rb in gloo-0.6.1 vs lib/gloo/objs/basic/boolean.rb in gloo-0.7.0

- old
+ new

@@ -82,56 +82,35 @@ # def self.messages return super + %w[not true false] end + # # Set the value to the opposite of what it is. + # def msg_not v = !value set_value v $engine.heap.it.set_to v return v end + # # Set the value to true. + # def msg_true set_value true $engine.heap.it.set_to true return true end + # # Set the value to false. + # def msg_false set_value false $engine.heap.it.set_to false return false - end - - # --------------------------------------------------------------------- - # Help - # --------------------------------------------------------------------- - - # - # Get help for this object type. - # - def self.help - return <<~TEXT - BOOLEAN OBJECT TYPE - NAME: boolean - SHORTCUT: bool - - DESCRIPTION - A boolean value. - Value will be either true or false. - - CHILDREN - None - - MESSAGES - not - Set the boolean to the opposite of what it is now. - true - Set the boolean to true. - false - Set the boolean to false. - TEXT end end end end