Method: Columnize.included
- Defined in:
- lib/columnize.rb
.included(base) ⇒ Object
Adds columnize_opts to the singleton level of included class
75 76 77 78 79 80 81 |
# File 'lib/columnize.rb', line 75 def self.included(base) # screw class variables, we'll use an instance variable on the class singleton class << base attr_accessor :columnize_opts end base.columnize_opts = DEFAULT_OPTS.dup end |