class Fixnum
def divisible_by? n
self % n == 0
end
end
4.divisible_by? 2 #=> true
4.divisible_by? 3 #=> false
class Student
def last_name
@last_name
end
end
class Student
def first_name
@first_name
end
end
With great monkey power comes great monkey responsibility.
- Spider Monkey