class ToyRobot::Robot
- ToyRobot::Robot
- Reference
- Object
Defined in:
toy_robot/robot.crConstructors
Instance Method Summary
- #direction : Direction | Nil
- #direction=(direction : Direction | Nil)
- #placed? : Bool
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #x : Int32 | Nil
- #x=(x : Int32 | Nil)
- #y : Int32 | Nil
- #y=(y : Int32 | Nil)
Constructor Detail
def self.new(x : Int32 | Nil = nil, y : Int32 | Nil = nil, direction : ToyRobot::Robot::Direction | Nil = nil)
#
Instance Method Detail
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
.