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

Undefined method `ap' for Kernel:Module #40

Closed
stormmaster42 opened this issue Dec 1, 2023 · 2 comments
Closed

Undefined method `ap' for Kernel:Module #40

stormmaster42 opened this issue Dec 1, 2023 · 2 comments

Comments

@stormmaster42
Copy link

stormmaster42 commented Dec 1, 2023

Trying to use show_me! in a simple example script.
I need to explicitly
require "awesome_print".
Otherwise:
show_me.rb:11:in 'block in show_me!': undefined method 'ap' for Kernel:Module (NoMethodError)

(Ruby Version 3.1.2, kiba-common-1.5.0)

@thbar
Copy link
Owner

thbar commented Dec 1, 2023

You are right! This is by design. The user is expected to manually require either awesome_print or amazing_print.

See this for the context:

Thanks for reporting this!

I'm fixing it in #41 by improving the documentation, which is not clear enough in that regard.

thbar added a commit that referenced this issue Dec 1, 2023
@thbar
Copy link
Owner

thbar commented Dec 1, 2023

Fixed! Thank you!

@thbar thbar closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants