class

CryPrompt::History

Inherits Reference / Object

Constructors

Instance methods

<<(line : String)

Adds a line to the history

Source
[](index : Int32)

Returns the history line at the specified index.

Source
add(line : String)

Same thing as &lt;&lt;

Source
current_line

returns the line in the history that the

Source
down

moves the

Source
historysize

Set the maximum size of the stored history

Source
historysize=(historysize : Int32)

Set the maximum size of the stored history

Source
index

property size : Int32 Not 100% sure what i want this for yet

Source
index=(index : Int32)

property size : Int32 Not 100% sure what i want this for yet

Source
size
Source
to_s(io : IO)

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(&quot;John&quot;, 32).to_s # =&gt; #&lt;Person:0x10a199f20&gt;
Source
up

increments the history index by 1

Source