Method: String#no_erb

Defined in:
lib/core_ext/string.rb

#no_erbString

Remove the erb extension if there is one

Returns:

  • (String)

    string with no erb extension



26
27
28
# File 'lib/core_ext/string.rb', line 26

def no_erb
  self.sub(/\.erb$/,'')
end