Sunday, March 4, 2018

Ruby Class Manipulation & Reflection



Ruby Class Functions Verify the class of a Ruby object obj.instance_of? String # Check if "obj" is a String obj.class == String # Same as above obj.is_a? Numeric # Check if "obj" is a Numeric or its sub-type obj.

No comments:

The Y Combinator (Slight Return)

Tiger got to hunt, Bird got to fly; Lisper got to sit and wonder, (Y (Y Y))? Tiger got to sleep, Bird got to land; Lisper got to tell hims...