lib/emmett/converter.rb
# Determine type of sub-directory based on the type of the current directory.
# Structure will only be as follow: ResourceGroup -> Resource -> Section
#
Determine type of sub-directory based on the type of the current directory.
Structure will only be as follow: ResourceGroup -> Resource -> Section
Determine type of sub - directory based on the type of the current directory . Structure will only be as follow : ResourceGroup - > Resource - > Section
def determine_type_from_current(type)
      case type
      when 'resources_group' then 'resource'
      when 'resource' then 'section'
      else
        raise Emmett::Error, 'directory nesting too deep'
      end
    end
def determine_type_from_current ( type ) case type when 'resources_group' then 'resource' when 'resource' then 'section' else raise Emmett :: Error , 'directory nesting too deep' end end
Determine type of sub-directory based on the type of the current directory.
Determine type of sub - directory based on the type of the current directory .
type
<not_specific>