Sha256: 95e8314881adba6efb413e0a238602a638fc02903fa3b344788c776f9c780e91

Contents?: true

Size: 99 Bytes

Versions: 8

Compression:

Stored size: 99 Bytes

Contents

class AgeRenderer
  def render(date)
    age = DateTime.now.year - date.year
    age.to_s
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
starapor-slippers-0.0.6 examples/view/person/age_renderer.rb
starapor-slippers-0.0.8 examples/view/person/age_renderer.rb
starapor-slippers-0.0.9 examples/view/person/age_renderer.rb
slippers-0.0.14 examples/view/person/age_renderer.rb
slippers-0.0.13 examples/view/person/age_renderer.rb
slippers-0.0.12 examples/view/person/age_renderer.rb
slippers-0.0.11 examples/view/person/age_renderer.rb
slippers-0.0.10 examples/view/person/age_renderer.rb