class Option
- Option
- Reference
- Object
Defined in:
classes/option.crConstructors
- .new(description : String, index : Int64)
- .new(description : String, sub_group : OptionGroup)
- .new(description : String, action : Action)
Class Method Summary
Instance Method Summary
- #action : Action | Nil
- #action=(action : Action | Nil)
- #description : String
- #description=(description : String)
- #get_index
- #index : Int64 | Nil
- #index=(index : Int64 | Nil)
- #is_cancel?
- #sub_group : OptionGroup | Nil
- #sub_group=(sub_group : OptionGroup | Nil)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Class Method 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>