Sha256: ebd0c5238d9e1b98a0f228bbfb9fd3253d77d66c305788ac602c463aaf04c10c

Contents?: true

Size: 176 Bytes

Versions: 6

Compression:

Stored size: 176 Bytes

Contents

class Proton::Page::Post < Proton::Page
  def css_class
    title.downcase.gsub(' ', '-')
  end

  def default_layout
    'post'  if html?
  end

  # Alias
  ::Post = self
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
proton-0.3.6 test/fixture/subclass/extensions/a/a.rb
proton-0.3.5 test/fixture/subclass/extensions/a/a.rb
proton-0.3.4 test/fixture/subclass/extensions/a/a.rb
proton-0.3.3 test/fixture/subclass/extensions/a/a.rb
proton-0.3.2 test/fixture/subclass/extensions/a/a.rb
proton-0.3.0.rc1 test/fixture/subclass/extensions/a/a.rb