Module: HasHelpers::CoreExt::Array

Defined in:
lib/has_helpers/core_ext/array.rb

Instance Method Summary collapse

Instance Method Details

#to_constantObject

Examples

["Initial", "Renewal", "Trial"].to_constant ["Initial", "Renewal", "Trial", :type => "Annuity"].to_constant



10
11
12
# File 'lib/has_helpers/core_ext/array.rb', line 10

def to_constant
  _to_constant(*self)
end

#to_renderableObject



14
15
16
# File 'lib/has_helpers/core_ext/array.rb', line 14

def to_renderable
  to_enum
end