Module: ViewDriver::StringExtensions

Defined in:
lib/view_driver/normalized_section_template.rb

Instance Method Summary collapse

Instance Method Details

#normalized_section_template(section) ⇒ Object



9
10
11
# File 'lib/view_driver/normalized_section_template.rb', line 9

def normalized_section_template(section)
  self !~ /_#{section}$/ ? self + "_#{section}" : self
end