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:

Moving Backgrounds With Mouse Position

Let's say you wanted to move the background-position on an element as you mouse over it to give the design a little pizzazz. You have ...