Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pry-like ls command #203

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Implement pry-like ls command #203

merged 1 commit into from
Mar 21, 2021

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Mar 18, 2021

I implemented pry's ls command for irb. This is useful when you want to inspect constants, methods, and variables of self or an object without typing a lot.

$ irb
irb(main)[01:0]> ls ERB.new('test')
ERB#methods:
  def_class         def_method        def_module        encoding          filename          filename=         lineno
  lineno=           location=         make_compiler     result            result_with_hash  run               set_eoutvar
  src
instance variables: @_init  @encoding  @filename  @frozen_string  @lineno  @src

Copy link
Member

@aycabta aycabta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't contain merge commit and please use git rebase origin/master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants