-
Notifications
You must be signed in to change notification settings - Fork 19
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
Basic Introspection #118
base: main
Are you sure you want to change the base?
Basic Introspection #118
Conversation
❤️ A few comments:
|
Yeah, I'd say instead of that just put the class name and have the developer get that information if they want to. |
I'd rather keep the output at one conceptual level – either use the Curly lingo (components, identifiers, attributes, ...) or the Ruby lingo (methods, arguments, classes). |
88e135c
to
5496628
Compare
Modified the output to separate |
5496628
to
a0aeddd
Compare
Adds a #description method to Curly::Presenter that returns information about the components that the presenter has available. Also adds a #presenter_for? method that looks for a presenter, if it exists, and returns true if it does.
a0aeddd
to
415a064
Compare
That should be it, let me know if there's anything that needs fixing. |
Thanks! We've in the process of adding stuff related to this to our product, so I'll probably wait with merging until we've verified that the format is useful. Is it okay if I add commits to this branch if need be? |
Yes; let me know if there is anything I need to do. |
Adds
.description
toCurly::Presenter
, as well as.presenter_for?
. Noice. Fixes #105.