class Mineral::Mineral
- Mineral::Mineral
- Reference
- Object
Included Modules
Defined in:
Class Method Summary
-
.new(id : Int32, name : String, hardness : Float64, crystal_struct : String)
Creates a mineral with given parameters
-
.new(id : Int32)
Creates a mineral with as "rock", 0 hardness and unknown structure
Instance Method Summary
- #crystal_struct : String
- #crystal_struct=(crystal_struct)
- #hardness : Float64 | Int32
- #id : Int32
-
#kind_of_crystal : String
Returns the crystal structure of this mineral
- #name : String
-
#to_s
Prints out a description of this mineral
Class Method Detail
def self.new(id : Int32, name : String, hardness : Float64, crystal_struct : String)
#
Creates a mineral with given parameters