class CryPrompt::History
- CryPrompt::History
- Reference
- Object
Defined in:
history.crConstructors
Instance Method Summary
-
#<<(line : String)
Adds a line to the history
-
#[](index : Int32)
Returns the history line at the specified index.
-
#add(line : String)
Same thing as <<
-
#current_line
returns the line in the history that the
-
#down
moves the
-
#historysize : Int32
Set the maximum size of the stored history
-
#historysize=(historysize : Int32)
Set the maximum size of the stored history
-
#index : Int32
property size : Int32 Not 100% sure what i want this for yet
-
#index=(index : Int32)
property size : Int32 Not 100% sure what i want this for yet
- #size
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#up
increments the history index by 1
Constructor Detail
Instance Method Detail
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>