class PuppetStrings::Markdown::DataType

This class encapsualtes ruby data types and puppet type aliases

Attributes

alias_of[R]
functions[R]

Public Class Methods

new(registry) click to toggle source
Calls superclass method PuppetStrings::Markdown::Base::new
# File lib/puppet-strings/markdown/data_type.rb, line 13
def initialize(registry)
  @template = 'data_type.erb'
  super(registry, 'data type')
  @alias_of = registry[:alias_of] unless registry[:alias_of].nil?
  @functions = @registry[:functions]&.map { |func| DataType::Function.new(func) }
end

Public Instance Methods

render() click to toggle source
Calls superclass method PuppetStrings::Markdown::Base#render
# File lib/puppet-strings/markdown/data_type.rb, line 20
def render
  super(@template)
end