Module: ClassyAdornments
- Defined in:
- lib/classy_adornments.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/classy_adornments.rb', line 3 def self.included(base) base.extend(self) end |
Instance Method Details
#adorn(name, opts = {}) ⇒ Object
7 8 9 10 |
# File 'lib/classy_adornments.rb', line 7 def adorn(name,opts = {}) adorn_with name if opts.empty? adorn_with_array name if opts[:array] end |