class Item
- Item
- Reference
- Object
Defined in:
stationeers.crConstructors
- .new(name : String, itype : ItemType, slot : Slot | Nil, id : String | Nil)
- .new(name : String, itype : ItemType, slot : String | Nil, id : String | Nil)
Instance Method Summary
- #basic_tool : Item | Nil
- #basic_tool=(basic_tool : Item | Nil)
- #crafts
- #crafts=(crafts : Hash(Recipe, Nil))
- #created_by : Hash(Recipe, Float64)
- #created_by=(created_by : Hash(Recipe, Float64))
- #energy : Float64
- #energy=(energy : Float64)
- #id : String?
- #ingredient_for : Hash(Recipe, Float64)
- #ingredient_for=(ingredient_for : Hash(Recipe, Float64))
- #itype : ItemType
- #name : String
- #slot : Slot?
- #speed : Float64
- #speed=(speed : Float64)
- #summary
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
def to_s
#
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
.