Sha256: 2be789bb67e7a3790c035feea5ef8575f215cd6718696ba1e529c00b68fc50ac

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

require 'mustache'

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

  def person
    return {
      :name => OpenStruct.new(:first => 'Chris', :last => 'Firescythe'),
      :age  => 24,
      :hometown => {
        :city  => "Cincinnati",
        :state => "OH"
      }
    }
  end

  def normal
    "Normal"
  end
end

if $0 == __FILE__
  puts DotNotation.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/dot_notation.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/dot_notation.rb
mustache-1.1.1 test/fixtures/dot_notation.rb
mustache-1.1.0 test/fixtures/dot_notation.rb
mustache-1.0.5 test/fixtures/dot_notation.rb
mustache-1.0.3 test/fixtures/dot_notation.rb
mustache-1.0.2 test/fixtures/dot_notation.rb
mustache-1.0.1 test/fixtures/dot_notation.rb
mustache-1.0.0 test/fixtures/dot_notation.rb