Sha256: 69b9f3b32f0f4cf293d2ef716ccd19fda36f3810b2b88376986ff3303a7c463f

Contents?: true

Size: 527 Bytes

Versions: 8

Compression:

Stored size: 527 Bytes

Contents

module AmpHtml
    module Components
        class Help

            def self.all
                puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'docs', 'README.md'
            end

            def self.component name
                begin
                    puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'docs', "#{name}.md"
                rescue Exception
                    warn 'Component 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/components/help.rb
amp-html-0.7.17 lib/amp-html/components/help.rb
amp-html-0.7.16 lib/amp-html/components/help.rb
amp-html-0.7.15 lib/amp-html/components/help.rb
amp-html-0.7.14 lib/amp-html/components/help.rb
amp-html-0.7.13 lib/amp-html/components/help.rb
amp-html-0.7.12 lib/amp-html/components/help.rb
amp-html-0.7.11 lib/amp-html/components/help.rb