Class: Coral::Template::Base

Inherits:
Config
  • Object
show all
Defined in:
lib/coral_core/template.rb

Overview


Base template

Direct Known Subclasses

Environment, JSON, Wrapper

Instance Method Summary collapse

Methods inherited from Config

#[], #[]=, array, #array, #clear, #defaults, #delete, ensure, #export, #filter, filter, #get, #get_array, #get_hash, #hash, hash, #import, init, #init, init_flat, #initialize, #set, #string, string, string_map, #string_map, #symbol, symbol, symbol_map, #symbol_map, test, #test

Methods included from Mixin::ConfigOptions

#clear_options, #contexts, #get_options, #set_options

Methods included from Mixin::ConfigCollection

#all_properties, #clear_properties, #delete_property, #get_property, #save_properties, #set_property

Methods included from Mixin::Lookup

#hiera, #hiera_config, #initialized?, #lookup, #lookup_array, #lookup_hash, #normalize

Methods included from Mixin::ConfigOps

#parse

Constructor Details

This class inherits a constructor from Coral::Config

Instance Method Details

#intialize(options = {}, defaults = {}, force = true) ⇒ Object

All template classes should extend Base



81
82
83
# File 'lib/coral_core/template.rb', line 81

def intialize(options = {}, defaults = {}, force = true)
  super(options, defaults, force)
end

#render(input) ⇒ Object




87
88
89
# File 'lib/coral_core/template.rb', line 87

def render(input)
  return ''  # Implement in sub classes!! 
end