class

Finfry::Web::Layout

Inherits Finfry::Web::Helpers < Reference < Object

Constructors

new(title : String, active : String, body : String, book : String, books : Array(Books::Entry), example : Bool, due_count : Int32, flash : Ctx::Flash | Nil, dev : Bool = false)
Source

Instance methods

book_options

The recent books as options, the active one selected, missing ones disabled. Labels are the path with $HOME shortened.

Source
to_s(__io__ : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source