class Recipe

Defined in:

stationeers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, tool : Item, result : Item, note : String | Nil) #

[View source]

Instance Method Detail

def byproducts : Hash(Item, Float64) #

[View source]
def byproducts=(byproducts : Hash(Item, Float64)) #

[View source]
def ingredients : Hash(Item, Float64) #

[View source]
def ingredients=(ingredients : Hash(Item, Float64)) #

[View source]
def name : String #

[View source]
def note : String? #

[View source]
def result : Item #

[View source]
def summary #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def tool : Item #

[View source]