class String

Public Instance Methods

force_html_extension() click to toggle source
# File lib/genit/extensions/string_extension.rb, line 4
def force_html_extension
  self.gsub /(markdown|haml)$/, 'html'
end
force_html_extension!() click to toggle source
# File lib/genit/extensions/string_extension.rb, line 8
def force_html_extension!
  self.gsub! /(markdown|haml)$/, 'html'
end
haml_ext?() click to toggle source
# File lib/genit/extensions/string_extension.rb, line 16
def haml_ext?
  self.end_with?('.haml')
end
markdown_ext?() click to toggle source
# File lib/genit/extensions/string_extension.rb, line 12
def markdown_ext?
  self.end_with?('.markdown')
end