Module: Abject::Encapsulation

Includes:
Reader
Defined in:
lib/abject/encapsulation.rb

Overview

Encapsulation can also be achieved through the use of protected functions. The importance of function safety cannot be stressed enough. Unprotected methods result in data spillage, tight object coupling, and other morally questionable behaviours. Abject-O achieves this with the ‘#` character and many IDE’s also provide macros to protect large sections of your code base efficiently - ‘opt arrow` on Sublime Text for example.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



22
23
24
# File 'lib/abject/encapsulation.rb', line 22

def self.included(base)
  base.extend ClassMethods
end