Sha256: 99a985f9666125320a310b1c00778b4a285a4780c2f9e4354a13aa9461fd10ec

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

module Pakyow
  module Presenter
    module DocHelpers
      def self.self_closing_tag?(tag)
        %w[area base basefont br hr input img link meta].include? tag
      end

      def self.form_field?(tag)
        %w[input select textarea button].include? tag
      end

      def self.tag_without_value?(tag)
        %w[select].include? tag
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pakyow-presenter-0.11.3 pakyow-presenter/lib/pakyow/presenter/doc_helpers.rb
pakyow-presenter-0.11.2 pakyow-presenter/lib/pakyow/presenter/doc_helpers.rb
pakyow-presenter-0.11.1 pakyow-presenter/lib/pakyow/presenter/doc_helpers.rb
pakyow-presenter-0.11.0 pakyow-presenter/lib/pakyow/presenter/doc_helpers.rb
pakyow-presenter-0.10.2 pakyow-presenter/lib/presenter/doc_helpers.rb
pakyow-presenter-0.10.1 pakyow-presenter/lib/presenter/doc_helpers.rb
pakyow-presenter-0.10.0 pakyow-presenter/lib/presenter/doc_helpers.rb
pakyow-presenter-0.9.1 pakyow-presenter/lib/presenter/doc_helpers.rb
pakyow-presenter-0.9.0 pakyow-presenter/lib/presenter/doc_helpers.rb