Sha256: 24ca1e9519d66c074f6f1217e064ce7c441c56ec041771f0a43bc0b23d4897f9

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib ruhl]))

def html(name)
  File.join( File.dirname(__FILE__), 'html', "#{name}.html" )
end

def do_parse(html)
  Nokogiri::HTML(html)
end

def create_doc(layout = nil)
  options = {:layout => layout} 
  html = Ruhl::Engine.new(@html, :layout => layout).render(self)
  do_parse(html)
end

class TestUser
  attr_accessor :first_name, :last_name, :email

  def initialize(first, last , email = nil)
    @first_name = first
    @last_name  = last
    @email = email
  end
end
 

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruhl-0.7.0 spec/spec_helper.rb
ruhl-0.6.0 spec/spec_helper.rb