Sha256: 6925a38f01916304615b74c77193fb9cbb625866f4ee45514ea1557dd2d6416f

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

require 'puppet-strings/markdown/base'

module PuppetStrings::Markdown
  # This class encapsualtes ruby data types and puppet type aliases
  class DataType < Base
    attr_reader :alias_of

    def initialize(registry)
      @template = 'data_type.erb'
      super(registry, 'data type')
      @alias_of = registry[:alias_of] unless registry[:alias_of].nil?
    end

    def render
      super(@template)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puppet-strings-2.4.0 lib/puppet-strings/markdown/data_type.rb
puppet-strings-2.3.1 lib/puppet-strings/markdown/data_type.rb
puppet-strings-2.3.0 lib/puppet-strings/markdown/data_type.rb