Sha256: 3d1d7ec8dbbb5b456d3225d0e29487bec4be37613801f06822305448c0c7e6a7

Contents?: true

Size: 708 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
amp-html-0.7.18 lib/amp-html/helpers/help.rb
amp-html-0.7.17 lib/amp-html/helpers/help.rb
amp-html-0.7.16 lib/amp-html/helpers/help.rb
amp-html-0.7.15 lib/amp-html/helpers/help.rb
amp-html-0.7.14 lib/amp-html/helpers/help.rb
amp-html-0.7.13 lib/amp-html/helpers/help.rb
amp-html-0.7.12 lib/amp-html/helpers/help.rb
amp-html-0.7.11 lib/amp-html/helpers/help.rb