| 1 | $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' |
| 2 | require 'mustache' |
| 3 | |
| 4 | class Simple < Mustache |
| 5 | self.path = File.dirname(__FILE__) |
| 6 | |
| 7 | def name |
| 8 | "Chris" |
| 9 | end |
| 10 | |
| 11 | def value |
| 12 | 10_000 |
| 13 | end |
| 14 | |
| 15 | def taxed_value |
| 16 | value - (value * 0.4) |
| 17 | end |
| 18 | |
| 19 | def in_ca |
| 20 | true |
| 21 | end |
| 22 | end |
| 23 | |
| 24 | puts Simple.render if $0 == __FILE__ |