class Athena::Console::Input::StringLine
Overview
An ACON::Input::Interface
based on a command line string.
Defined in:
input/string_line.crConstructors
Instance methods inherited from class Athena::Console::Input::ARGV
first_argument : String | Nil
first_argument,
has_parameter?(*values : String, only_params : Bool = false) : Bool
has_parameter?,
parameter(value : String, default : _ = false, only_params : Bool = false)
parameter,
to_s(io : IO) : Nil
to_s
Constructor methods inherited from class Athena::Console::Input::ARGV
new(tokens : Array(String) = ::ARGV, definition : ACON::Input::Definition | Nil = nil)new(*tokens : String) new
Instance methods inherited from class Athena::Console::Input
argument(name : String, type : T.class) : T forall Targument(name : String) : String | Nil argument, arguments : ::Hash arguments, bind(definition : ACON::Input::Definition) : Nil bind, escape_token(token : String) : String escape_token, has_argument?(name : String) : Bool has_argument?, has_option?(name : String) : Bool has_option?, interactive=(interactive : Bool) interactive=, interactive? : Bool interactive?, option(name : String, type : T.class) : T forall T
option(name : String) : String | Nil option, options : ::Hash options, set_argument(name : String, value : _) : Nil set_argument, set_option(name : String, value : _) : Nil set_option, stream : IO | Nil stream, stream=(stream : IO | Nil) stream=, validate : Nil validate
Constructor methods inherited from class Athena::Console::Input
new(definition : ACON::Input::Definition | Nil = nil)
new
Instance methods inherited from module Athena::Console::Input::Streamable
stream : IO | Nil
stream,
stream=(stream : IO | Nil)
stream=
Instance methods inherited from module Athena::Console::Input::Interface
argument(name : String, type : T.class) forall Targument(name : String) : String | Nil argument, arguments : ::Hash arguments, bind(definition : ACON::Input::Definition) : Nil bind, first_argument : String | Nil first_argument, has_argument?(name : String) : Bool has_argument?, has_option?(name : String) : Bool has_option?, has_parameter?(*values : String, only_params : Bool = false) : Bool has_parameter?, interactive=(interactive : Bool) interactive=, interactive? : Bool interactive?, option(name : String, type : T.class) forall T
option(name : String) : String | Nil option, options : ::Hash options, parameter(value : String, default : _ = false, only_params : Bool = false) parameter, set_argument(name : String, value : _) : Nil set_argument, set_option(name : String, value : _) : Nil set_option, to_s(io : IO) : Nil to_s, validate : Nil validate