class CryPrompt::History

Defined in:

history.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def <<(line : String) #

Adds a line to the history


[View source]
def [](index : Int32) #

Returns the history line at the specified index.


[View source]
def add(line : String) #

Same thing as <<


[View source]
def current_line #

returns the line in the history that the


[View source]
def down #

moves the


[View source]
def historysize : Int32 #

Set the maximum size of the stored history


[View source]
def historysize=(historysize : Int32) #

Set the maximum size of the stored history


[View source]
def index : Int32 #

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


[View source]
def index=(index : Int32) #

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


[View source]
def size #

[View source]
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>

[View source]
def up #

increments the history index by 1


[View source]