Module: Roject::Helpers

Included in:
Project
Defined in:
lib/helpers.rb

Overview

Created: 7 - 8 - 2016

Instance Method Summary collapse

Instance Method Details

#c_header_id(path) ⇒ Object

Generates a c header id for the given path this is an identifier used for checking if the header has been implemented

Parameters: path - the path being converted

Return: a c header id generated from the given path



31
# File 'lib/helpers.rb', line 31

def c_header_id(path); "_#{path.upcase.gsub(/\/|\\/, "_")}_H_"; end