Sha256: f5f940476da48f0699b46c14da401a97afae7ad0fd7959ae03f552fa8cee7f65

Contents?: true

Size: 247 Bytes

Versions: 9

Compression:

Stored size: 247 Bytes

Contents

class Guide::Nobilizer
  def bestow_title(node_path)
    node_path.split("/").collect(&:titleize).join(" » ").html_safe
  end

  def bestow_heritage(node_path)
    node_path.split("/")[0...-1].collect(&:titleize).join(" » ").html_safe
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
guide-0.8.0 app/models/guide/nobilizer.rb
guide-0.7.0 app/models/guide/nobilizer.rb
guide-0.6.1 app/models/guide/nobilizer.rb
guide-0.6.0 app/models/guide/nobilizer.rb
guide-0.5.0 app/models/guide/nobilizer.rb
guide-0.4.1 app/models/guide/nobilizer.rb
guide-0.4.0 app/models/guide/nobilizer.rb
guide-0.3.2 app/models/guide/nobilizer.rb
guide-0.3.1 app/models/guide/nobilizer.rb