module Abject::Encapsulation
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.
Public Class Methods
included(base)
click to toggle source
# File lib/abject/encapsulation.rb, line 22 def self.included(base) base.extend ClassMethods end