Sha256: d138500734447549213c290452a24c16637f962011a2b1913fc241a7bb3eb1dd

Contents?: true

Size: 207 Bytes

Versions: 34

Compression:

Stored size: 207 Bytes

Contents

module XMLSnippets
  def snippet(name)
    File.read(File.expand_path("#{name}.xml", snippet_path))
  end

  def snippet_path
    @snippet_path ||= File.expand_path("../../fixtures/xml", __FILE__)
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
sablon-0.4.1 test/support/xml_snippets.rb
sablon-0.4.0 test/support/xml_snippets.rb
sablon-0.3.2 test/support/xml_snippets.rb
sablon-0.3.1 test/support/xml_snippets.rb
sablon-0.3.0 test/support/xml_snippets.rb
sablon-0.2.1 test/support/xml_snippets.rb
sablon-0.2.0 test/support/xml_snippets.rb
sablon-0.1.1 test/support/xml_snippets.rb
sablon-0.1.0 test/support/xml_snippets.rb
sablon-0.0.22 test/support/xml_snippets.rb
sablon-0.0.21 test/support/xml_snippets.rb
sablon-0.0.20 test/support/xml_snippets.rb
sablon-0.0.19 test/support/xml_snippets.rb
sablon-0.0.19.beta5 test/support/xml_snippets.rb
sablon-0.0.19.beta4 test/support/xml_snippets.rb
sablon-0.0.19.beta3 test/support/xml_snippets.rb
sablon-0.0.19.beta2 test/support/xml_snippets.rb
sablon-0.0.19.beta1 test/support/xml_snippets.rb
sablon-0.0.18 test/support/xml_snippets.rb
sablon-0.0.17 test/support/xml_snippets.rb