class Option

Defined in:

classes/option.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(description : String, index : Int64) #

[View source]
def self.new(description : String, sub_group : OptionGroup) #

[View source]
def self.new(description : String, action : Action) #

[View source]

Class Method Detail

def self.cancel(desc : String) #

[View source]

Instance Method Detail

def action : Action | Nil #

[View source]
def action=(action : Action | Nil) #

[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def get_index #

[View source]
def index : Int64 | Nil #

[View source]
def index=(index : Int64 | Nil) #

[View source]
def is_cancel? #

[View source]
def sub_group : OptionGroup | Nil #

[View source]
def sub_group=(sub_group : OptionGroup | Nil) #

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