Method: Elasticshell::Shell#eval_line
- Defined in:
- lib/elasticshell/shell.rb
#eval_line(line) ⇒ Object
166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/elasticshell/shell.rb', line 166 def eval_line line begin self.state = :eval self.input = line.strip command.evaluate! rescue ::Elasticshell::Error => e Elasticshell.error e. end self.state = :read self.line += 1 self end |