abstract class Novika::Capabilities::ISystem
- Novika::Capabilities::ISystem
- Reference
- Object
Included Modules
Extended Modules
Direct Known Subclasses
Defined in:
novika/capabilities/system.crClass Method Summary
Instance Method Summary
-
#append_echo(engine, form : Form)
Enquotes and appends form to the standard output stream.
-
#bye(engine, code : Decimal)
Ends the program with the given exit code.
-
#inject(into target : Block)
Injects the vocabulary of this capability into the target block.
-
#monotonic(engine) : Decimal
Returns a reading from the monotonic clock, in milliseconds.
-
#nap(engine, millis : Decimal)
Sleeps for the given amount of milliseconds.
-
#readline(engine, prompt : Form) : Tuple(Quote | Nil, Boolean)
Enquotes and prints prompt to STDOUT.
-
#readline_star(engine, config : PromptConfig) : Tuple(Quote | Nil, Boolean)
Extended (contextful) version of
#readline
. -
#report_error(engine, error : Error)
Reports abound an error to the standard error stream.
Instance methods inherited from module Novika::ICapability
capabilities : CapabilityCollection
capabilities,
inject(into target : Block)
inject
Constructor methods inherited from module Novika::ICapability
new(capabilities)
new
Class Method Detail
Instance Method Detail
Enquotes and appends form to the standard output stream.
Injects the vocabulary of this capability into the target block.
Returns a reading from the monotonic clock, in milliseconds.
Enquotes and prints prompt to STDOUT. Waits for the user to answer, enquotes the answer (if any) and returns it together with a status boolean.
If the user answered with EOF (e.g. CTRL-D), status bool is false and answer quote is nil. Else, answer quote contains the answer and status bool is true.