Class: Tilt::HamlTemplate

Inherits:
Object show all
Defined in:
lib/rad/template/_support/tilt_fixes.rb,
lib/rad/template/_support/tilt.rb

Overview

Tilt::HamlTemplate.inspect causes error, fixin it.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.capture(context, &block) ⇒ Object



60
61
62
# File 'lib/rad/template/_support/tilt.rb', line 60

def self.capture context, &block
  context.capture_haml &block
end

.concat(context, value) ⇒ Object



64
65
66
# File 'lib/rad/template/_support/tilt.rb', line 64

def self.concat context, value
  context.haml_concat value
end

.get_output(context) ⇒ Object



56
57
58
# File 'lib/rad/template/_support/tilt.rb', line 56

def self.get_output context
  context.haml_buffer.buffer
end

Instance Method Details

#inspectObject



5
6
7
# File 'lib/rad/template/_support/tilt_fixes.rb', line 5

def inspect
  "#<Tilt::HamlTemplate:#{object_id} ...>"
end