Sha256: 95b37b2b925e9c92bcf68dcd0f97cc2bc4dcacccf5c8903f34d7c8acf845eec5
Contents?: true
Size: 708 Bytes
Versions: 4
Compression:
Stored size: 708 Bytes
Contents
module AmpHtml module Helpers class Help def self.all puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', 'README.md' end def self.helper name begin if name == 'amp?' puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', 'amp.md' else puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', "#{name}.md" end rescue Exception warn 'Helper is not available' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
amp-html-0.7.10 | lib/amp_html/helpers/help.rb |
amp-html-0.7.9 | lib/amp_html/helpers/help.rb |
amp-html-0.7.8 | lib/amp_html/helpers/help.rb |
amp-html-0.7.7 | lib/amp_html/helpers/help.rb |