class Raddocs::Guide
Guide
page model
Attributes
title[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/raddocs/models.rb, line 78 def initialize(attributes) @title = attributes.fetch("title") @file = attributes.fetch("file") end
Public Instance Methods
href()
click to toggle source
# File lib/raddocs/models.rb, line 83 def href filename = @file.gsub(".md", "") "guides/#{filename}" end