module StyleGuide::StyleGuideHelper
Public Instance Methods
base_docs(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 14 def base_docs file File.read("lib/assets/style_guide/doc/base/#{file}") end
base_markup(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 18 def base_markup file File.read("lib/assets/style_guide/markup/base/#{file}") end
filename(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 3 def filename file filename = file.sub(".html","") filename end
pattern_docs(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 22 def pattern_docs file File.read("lib/assets/style_guide/doc/patterns/#{file}") end
pattern_markup(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 26 def pattern_markup file File.read("lib/assets/style_guide/markup/patterns/#{file}") end
title(file)
click to toggle source
# File lib/generators/style/templates/style_guide_helper.rb, line 8 def title file filename = file.sub(".html","") title = filename.gsub(/\-/i, " ") title end