Class: Pendaxes::Reporter::Haml

Inherits:
Pendaxes::Reporter show all
Defined in:
lib/pendaxes/reporters/haml.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pendaxes::Reporter

#initialize

Methods included from Defaults

#defaults

Methods included from Finder

#announce, #find, #inherited

Methods included from PendingManager

#add, #all_pendings, #pendings, #reset

Constructor Details

This class inherits a constructor from Pendaxes::Reporter

Class Method Details

.html?Boolean

Returns:

  • (Boolean)


21
# File 'lib/pendaxes/reporters/haml.rb', line 21

def self.html?; true; end

Instance Method Details

#reportObject



16
17
18
19
# File 'lib/pendaxes/reporters/haml.rb', line 16

def report
  haml = ::Haml::Engine.new(File.read(@config.template))
  haml.render(binding, config: @config)
end