abstract class Data::Recipe

Direct Known Subclasses

Defined in:

data/recipe.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_toml : String to_toml

Constructor Detail

def self.from_toml(table : String, setting) : Recipe #

[View source]
def self.new(table : Nil | String, pg : Nil | Data::Pg::Meta = nil, ch : Nil | Data::Ch::Meta = nil, reason : Nil | String = nil) #

[View source]

Instance Method Detail

def action : String #

[View source]
def ch : Ch::Meta #

def ch=(v : Nil) #

nil assignments are always ignored


def ch=(v : Ch::Meta) : Ch::Meta #

def ch? : Ch::Meta | Nil #

abstract def color : Symbol #

[View source]
def colorize(text) #

[View source]
def control? : Bool #

[View source]
def pg : Pg::Meta #

def pg=(v : Nil) #

nil assignments are always ignored


def pg=(v : Pg::Meta) : Pg::Meta #

def pg? : Pg::Meta | Nil #

def reason : String #

def reason=(v : String) : String #

def reason=(v : Nil) #

nil assignments are always ignored


def reason? : String | Nil #

def table : String #

def table=(v : String) : String #

def table=(v : Nil) #

nil assignments are always ignored


def table? : String | Nil #

def to(klass : Recipe.class) : Recipe #

[View source]
def to_s(io : IO) #
Description copied from class Reference

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>

[View source]
def to_toml(maxsize : Int32 | Nil = nil) : String #

[View source]