Sha256: be4ac4a0781d1fd868a91c681bf84fff08d4ea4a5f8e27eb53157e7bec6d2f67
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
require 'rib' module Rib; module LastValue extend Plugin Shell.use(self) attr_reader :last_value, :last_exception def print_result result return super if LastValue.disabled? @last_value = result super end def print_eval_error err return super if LastValue.disabled? @last_exception = err super end module Imp def last_value Rib.shell.last_value end def last_exception Rib.shell.last_exception end end Rib.extend(Imp) end; end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rib-1.6.1 | lib/rib/core/last_value.rb |
rib-1.6.0 | lib/rib/core/last_value.rb |
rib-1.5.4 | lib/rib/core/last_value.rb |
rib-1.5.3 | lib/rib/core/last_value.rb |
rib-1.5.2 | lib/rib/core/last_value.rb |