Class: Uma::CLI::Base
- Inherits:
-
Object
- Object
- Uma::CLI::Base
- Defined in:
- lib/uma/cli.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(argv, env) ⇒ Base
constructor
A new instance of Base.
- #print_message(io, template) ⇒ Object
Constructor Details
#initialize(argv, env) ⇒ Base
Returns a new instance of Base.
44 45 46 47 |
# File 'lib/uma/cli.rb', line 44 def initialize(argv, env) @argv = argv @env = env end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
42 43 44 |
# File 'lib/uma/cli.rb', line 42 def argv @argv end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
42 43 44 |
# File 'lib/uma/cli.rb', line 42 def env @env end |
Instance Method Details
#print_message(io, template) ⇒ Object
49 50 51 |
# File 'lib/uma/cli.rb', line 49 def (io, template, **) io << "#{format(template, **)}\n" end |