Module: Puppet::Network::FormatHandler::InstanceMethods

Defined in:
lib/vendor/puppet/network/format_handler.rb

Instance Method Summary collapse

Instance Method Details

#mime(format = nil) ⇒ Object



169
170
171
172
173
# File 'lib/vendor/puppet/network/format_handler.rb', line 169

def mime(format = nil)
  format ||= self.class.default_format

  Puppet::Network::FormatHandler.protected_format(format).mime
end

#render(format = nil) ⇒ Object



163
164
165
166
167
# File 'lib/vendor/puppet/network/format_handler.rb', line 163

def render(format = nil)
  format ||= self.class.default_format

  Puppet::Network::FormatHandler.protected_format(format).render(self)
end

#support_format?(name) ⇒ Boolean

Returns:

  • (Boolean)


175
176
177
# File 'lib/vendor/puppet/network/format_handler.rb', line 175

def support_format?(name)
  self.class.support_format?(name)
end