rubyx/lib/parfait/class.rb
Torsten Ruger 5792fb983b add module
between class and object, as in ruby
2015-04-15 11:38:46 +03:00

15 lines
467 B
Ruby

# Class derives from and derives most of it's functionality (that you would associate with a class)
# from there
# A Class is a module that can be instantiated
# An Object carries the data for the instance variables it has
# The Layout lists the names of the instance variables
# The class keeps a list of instance methods, these have a name and code
class Class < Module
# ruby 2.1 list (just for reference, keep at bottom)
#:allocate, :new, :superclass
end