class

Data::Recipe

Inherits Reference < Object

Constructors

from_toml(table : String, setting) : Recipe
Source
new(table : Nil | String, pg : Nil | Data::Pg::Meta = nil, ch : Nil | Data::Ch::Meta = nil, reason : Nil | String = nil)
Source

Instance methods

action
Source
ch
ch=(v : Nil)

nil assignments are always ignored

ch=(v : Ch::Meta) : Ch::Meta
ch?
color
Source
colorize(text)
Source
control?
Source
pg
pg=(v : Nil)

nil assignments are always ignored

pg=(v : Pg::Meta) : Pg::Meta
pg?
reason
reason=(v : String) : String
reason=(v : Nil)

nil assignments are always ignored

reason?
table
table=(v : String) : String
table=(v : Nil)

nil assignments are always ignored

table?
to(klass : Recipe.class) : Recipe
Source
to_s(io : IO)

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
to_toml(maxsize : Int32 | Nil = nil) : String
Source

Nested types