Class: Uma::CLI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/uma/cli.rb

Direct Known Subclasses

ErrorResponse, Help, Serve, Version

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argvObject (readonly)

Returns the value of attribute argv.



42
43
44
# File 'lib/uma/cli.rb', line 42

def argv
  @argv
end

#envObject (readonly)

Returns the value of attribute env.



42
43
44
# File 'lib/uma/cli.rb', line 42

def env
  @env
end

Instance Method Details



49
50
51
# File 'lib/uma/cli.rb', line 49

def print_message(io, template, **)
  io << "#{format(template, **)}\n"
end