Class: PuppetStrings::Markdown::DataType

Inherits:
Base
  • Object
show all
Defined in:
lib/puppet-strings/markdown/data_type.rb

Overview

This class encapsualtes ruby data types and puppet type aliases

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#defaults, #enums, #enums_for_param, #examples, #link, #name, #options, #options_for_param, #params, #private?, #raises, #return_type, #see, #since, #text, #toc_info, #value_string

Constructor Details

#initialize(registry) ⇒ DataType

Returns a new instance of DataType.



8
9
10
11
12
# File 'lib/puppet-strings/markdown/data_type.rb', line 8

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

Instance Attribute Details

#alias_ofObject (readonly)

Returns the value of attribute alias_of.



6
7
8
# File 'lib/puppet-strings/markdown/data_type.rb', line 6

def alias_of
  @alias_of
end

Instance Method Details

#renderObject



14
15
16
# File 'lib/puppet-strings/markdown/data_type.rb', line 14

def render
  super(@template)
end