class Data::Cookbook::Cooked

Included Modules

Defined in:

data/cookbook.cr

Instance Method Summary

Instance methods inherited from class Object

to_toml : String to_toml

Instance Method Detail

def <<(*args, **options) #

[View source]
def <<(*args, **options, &) #

[View source]
def array : 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"


def 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"


def array=(v : Nil) #

nil assignments are always ignored


def array? : Array(Chef::Cooked) | Nil #

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


def each(*args, **options) #

[View source]
def each(*args, **options, &) #

[View source]
def errors : Array(Chef::ERROR) #

[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]