Class: AssetsMapper::RecurseEnum
Instance Attribute Summary
Attributes inherited from Enum
#children, #indent_prefix, #name
Instance Method Summary collapse
-
#initialize(path) ⇒ RecurseEnum
constructor
A new instance of RecurseEnum.
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 |