Class: ConstantizableArray

Inherits:
Array
  • Object
show all
Defined in:
lib/ars/familiar/constantizable_array.rb

Constant Summary collapse

EMPTY_PARAM =
"EMPTY_PARM".freeze

Instance Method Summary collapse

Instance Method Details

#constantize(wedge = EMPTY_PARAM) ⇒ Object



3
4
5
6
# File 'lib/ars/familiar/constantizable_array.rb', line 3

def constantize(wedge = EMPTY_PARAM)
  wedge == EMPTY_PARAM && wedge = '::'
  self.compact.join(wedge).constantize
end