diff options
author | Stan Lo <[email protected]> | 2024-08-27 13:49:17 +0100 |
---|---|---|
committer | git <[email protected]> | 2024-08-27 12:49:23 +0000 |
commit | 87fa75c5db2e6f89a892c0ed75f1701398ce5f19 () | |
tree | 9febe70576ab194fed7c0a6064b25879b497b254 /lib/irb/context.rb | |
parent | a431f4ecc474d51990a0cb263fdf3e07964150e4 (diff) |
[ruby/irb] Move parse_command method to Context
(https://.com/ruby/irb/pull/993) Since Context dictates whether a line is a command or an expression, moving the parse_command method to Context makes the relationship more explicit. https://.com/ruby/irb/commit/9a4487af61
-rw-r--r-- | lib/irb/context.rb | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -13,6 +13,7 @@ module IRB # A class that wraps the current state of the irb session, including the # configuration of IRB.conf. class Context # Creates a new IRB context. # # The optional +input_method+ argument: @@ -635,6 +636,31 @@ module IRB result end def inspect_last_value # :nodoc: @inspect_method.inspect_value(@last_value) end |