TrueClass

ruby/spec describes 8 methods in core/true, and Metorex implements 8 of them. The parameters are what Method#parameters answers under Metorex.

  • TrueClass#&: implemented, parameters [[:req]]. Returns false if object is false or nil, true otherwise:
  • TrueClass#===: implemented, parameters [[:req]]. Returns true or false.
  • TrueClass#^: implemented, parameters [[:req]]. Returns true if object is false or nil, false otherwise:
  • TrueClass#dup: implemented, parameters []. Produces a shallow copy of obj---the instance variables of obj are copied, but not the objects they reference. An example calling it.
  • TrueClass#inspect: implemented, parameters []. Returns string 'true': An example calling it.
  • TrueClass#singleton_method: implemented, parameters [[:req]]. Similar to method, searches singleton method only. An example calling it.
  • TrueClass#to_s: implemented, parameters []. Returns string 'true': An example calling it.
  • TrueClass#|: implemented, parameters [[:req]]. Returns true:

The method summaries are the first sentences of Ruby's own documentation for each method, read from MRI 4.0.6's ri data. Ruby's documentation is distributed under Ruby's license.