-
Notifications
You must be signed in to change notification settings - Fork 4
Glossary and Definitions
Andy Maleh edited this page Apr 8, 2015
·
1 revision
- SuperModule: name of the library and Ruby module that provides functionality via mixin
- Super module: any Ruby module that mixes in SuperModule
- Singleton class: also known as the metaclass or eigenclass, it is the object-instance-associated class copy available to every object in Ruby (e.g. every
Object.new
instance has a singleton class that is a copy of theObject
class, which can house instance-specific behavior if needed) - Singleton method: an instance method defined on an object's singleton class. Often used to refer to a class or module method defined on the Ruby class object or module object singleton class via
def self.method_name(...)
orclass << self
enclosingdef method_name(...)
- Class method invocation: Inherited Ruby class or module method invoked in the body of a class or module (e.g.
validates :username, presence: true
) - Code-time: Time of writing code in a Ruby file as opposed to Run-time
- Run-time: Time of executing Ruby code