Sha256: fd94a2316c5df3b6c1bc1c95f74cc5e095d02d829cd1791c7434f8293e64cc7a

Contents?: true

Size: 216 Bytes

Versions: 8

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

module HS
  class Header < HS::Element
    attr_accessor :level

    def initialize(params)
      super
      @level ||= 1
    end

    def tag_name
      "h#{level}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hs-cli-0.3.3 lib/hs/elements/header.rb
hs-cli-0.3.2 lib/hs/elements/header.rb
hs-cli-0.3.1 lib/hs/elements/header.rb
hs-cli-0.3.0 lib/hs/elements/header.rb
hs-cli-0.2.2 lib/hs/elements/header.rb
hs-cli-0.2.1 lib/hs/elements/header.rb
hs-cli-0.2.0 lib/hs/elements/header.rb
hs-cli-0.1.2 lib/hs/elements/header.rb