Method: NEAR::CLI#initialize

Defined in:
lib/near/cli.rb

#initialize(path: self.class.find_program, network: NEAR_ENV) ⇒ CLI

Returns a new instance of CLI.

Parameters:

  • path (String, #to_s) (defaults to: self.class.find_program)
  • network (Network, #to_s) (defaults to: NEAR_ENV)


43
44
45
# File 'lib/near/cli.rb', line 43

def initialize(path: self.class.find_program, network: NEAR_ENV)
  @path, @network = path.to_s, network.to_s
end