class Wst::HamlContent

Public Class Methods

new(file_path, child = nil, sub_content = '') click to toggle source
Calls superclass method Wst::Content::new
# File lib/wst/haml_content.rb, line 6
def initialize file_path, child = nil, sub_content = ''
  super file_path, child
  @sub_content = sub_content
end

Public Instance Methods

deep_content() click to toggle source
# File lib/wst/haml_content.rb, line 15
def deep_content
  c = self
  while !c.child.nil? && !c.child.child.nil?
    c = c.child
  end
  c
end
sub_content() click to toggle source
# File lib/wst/haml_content.rb, line 11
def sub_content
  @sub_content
end