Sha256: 97a5b9059311ff76e83a789fa4dbef2737d608edd37b77da265de0dfc201628a

Contents?: true

Size: 269 Bytes

Versions: 9

Compression:

Stored size: 269 Bytes

Contents

require 'mustache'

class Simple < Mustache
  self.path = File.dirname(__FILE__)

  def name
    "Chris"
  end

  def value
    10_000
  end

  def taxed_value
    value - (value * 0.4)
  end

  def in_ca
    true
  end
end

if $0 == __FILE__
  puts Simple.to_html
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
zine_brewer-1.5.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/simple.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/simple.rb
mustache-1.1.1 test/fixtures/simple.rb
mustache-1.1.0 test/fixtures/simple.rb
mustache-1.0.5 test/fixtures/simple.rb
mustache-1.0.3 test/fixtures/simple.rb
mustache-1.0.2 test/fixtures/simple.rb
mustache-1.0.1 test/fixtures/simple.rb
mustache-1.0.0 test/fixtures/simple.rb