Class: PuppetStrings::Markdown::DataType
- Defined in:
- lib/puppet-strings/markdown/data_type.rb
Overview
This class encapsualtes ruby data types and puppet type aliases
Instance Attribute Summary collapse
-
#alias_of ⇒ Object
readonly
Returns the value of attribute alias_of.
Instance Method Summary collapse
-
#initialize(registry) ⇒ DataType
constructor
A new instance of DataType.
- #render ⇒ Object
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_of ⇒ Object (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
#render ⇒ Object
14 15 16 |
# File 'lib/puppet-strings/markdown/data_type.rb', line 14 def render super(@template) end |