class

Data::Cookbook::Cooked

Inherits Enumerable < Reference < Object

Instance methods

<<(*args, **options)
Source
<<(*args, **options, &)
Source
array

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

array=(v : Array(Chef::Cooked)) : Array(Chef::Cooked)

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

array=(v : Nil)

nil assignments are always ignored

array?

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

each(*args, **options)
Source
each(*args, **options, &)
Source
errors
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