Module: Tins::ConstantMaker

Defined in:
lib/tins/dslkit.rb

Overview

This module can be used to extend another module/class. It generates symbols for every missing constant under the namespace of this module/class.

Instance Method Summary collapse

Instance Method Details

#const_missing(id) ⇒ Object

Returns a symbol (id) for every missing constant named id.



291
292
293
# File 'lib/tins/dslkit.rb', line 291

def const_missing(id)
  id
end