Class: AssetsMapper::RecurseEnum

Inherits:
Enum
  • Object
show all
Defined in:
lib/classes/Enum.rb

Instance Attribute Summary

Attributes inherited from Enum

#children, #indent_prefix, #name

Instance Method Summary collapse

Methods inherited from Enum

#add_children, static_let, #to_s

Constructor Details

#initialize(path) ⇒ RecurseEnum

Returns a new instance of RecurseEnum.



41
42
43
# File 'lib/classes/Enum.rb', line 41

def initialize(path)
  @name = path.match('.*/(.*)/').captures[]
end