abstract class Data::Recipe
- Data::Recipe
- Reference
- Object
Direct Known Subclasses
Defined in:
data/recipe.crConstructors
- .from_toml(table : String, setting) : Recipe
- .new(table : Nil | String, pg : Nil | Data::Pg::Meta = nil, ch : Nil | Data::Ch::Meta = nil, reason : Nil | String = nil)
Instance Method Summary
- #action : String
- #ch : Ch::Meta
-
#ch=(v : Nil)
nil
assignments are always ignored - #ch=(v : Ch::Meta) : Ch::Meta
- #ch? : Ch::Meta | Nil
- #color : Symbol
- #colorize(text)
- #control? : Bool
- #pg : Pg::Meta
-
#pg=(v : Nil)
nil
assignments are always ignored - #pg=(v : Pg::Meta) : Pg::Meta
- #pg? : Pg::Meta | Nil
- #reason : String
- #reason=(v : String) : String
-
#reason=(v : Nil)
nil
assignments are always ignored - #reason? : String | Nil
- #table : String
- #table=(v : String) : String
-
#table=(v : Nil)
nil
assignments are always ignored - #table? : String | Nil
- #to(klass : Recipe.class) : Recipe
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #to_toml(maxsize : Int32 | Nil = nil) : String
Instance methods inherited from class Object
to_toml : String
to_toml
Constructor Detail
def self.new(table : Nil | String, pg : Nil | Data::Pg::Meta = nil, ch : Nil | Data::Ch::Meta = nil, reason : Nil | String = nil)
#
Instance Method Detail
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>