Method: TTY::Command::Cmd#evars

Defined in:
lib/tty/command/cmd.rb

#evars(value, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



89
90
91
92
93
# File 'lib/tty/command/cmd.rb', line 89

def evars(value, &block)
  return (value || block) unless environment.any?

  "( export #{environment_string} ; #{value || block.call} )"
end