Skip to content

Commit

Permalink
Update comment in irbrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 28, 2023
1 parent 87504d1 commit 012c218
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions home/.config/irb/irbrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Imported from https://github.com/kachick/irb-power_assert/blob/98ad68b4c391bb30adee1ba119cb6c6ed5bd0bfc/examples/.irbrc

require 'irb/power_assert'

# This logic taken from following reference, @k0kubun thank you!
# * https://github.com/k0kubun/dotfiles/blob/8762ee623adae0fba20ed0a5ef7c8ff5825dc20a/config/.irbrc#L241-L262
# * https://k0kubun.hatenablog.com/entry/2021/04/02/211455
IRB::Context.prepend(Module.new{
kwargs = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7.0') ? ', **' : ''
line = __LINE__; eval %q{
Expand Down

0 comments on commit 012c218

Please sign in to comment.