module Athena::Console::Input::Streamable
Overview
An extension of ACON::Input::Interface
that supports input stream IOs.
Allows customizing where the input data is read from.
Defaults to STDIN
.
Included Modules
Direct including types
Defined in:
input/streamable.crInstance Method Summary
-
#stream : IO | Nil
Returns the input stream.
-
#stream=(stream : IO | Nil)
Sets the input 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