Comments (3)
Hi @taichi-ishitani thank you for using the library and asking this question!
My current view is:
(a) this is desired behavior
(b) it should be documented and covered by tests
I'd be interested in understanding the motivation for private methods of the DSL object to be accessible? That doesn't seem like an ideal usage pattern for this library to be encouraging?
from docile.
Hi @ms-ati ,
Thanks for your comment and I understand your thought.
the motivation for private methods of the DSL object to be accessible
My motivation is rather than for alternate of #instance_eval
.
I often use Docile.dsl_eval
instead of #instance_eval
because both of receiver's methods and block context's methods can be used so I'd like Docile.dsl_eval
to behave like '#instance_eval' for this use case . Therefore, I asked you this question.
from docile.
Hi @ms-ati ,
This ticket is just to confirm your view.
Now, I understand your view so I'm closing this ticket.
from docile.
Related Issues (20)
- [DEPRECATION] #adapters is deprecated. Use #profiles instead. HOT 2
- rspec testsuite fails with ruby 3.3.0dev
- How to execute a method from a context in a different context? HOT 2
- instance variables are overwritten with nil value when DSL and block contexts are same HOT 10
- self is overwritten with nested blocks HOT 9
- DSL object is replaced when #dsl_eval is nested HOT 2
- Roll back backtrace HOT 5
- Bug: instance variable leaks from child to parent scopes HOT 5
- Bug: Docile 1.3 breaks cfer HOT 2
- Superclasses, Children and unexpected results (self is not what it should be) HOT 12
- Rubinius 3 not actually supported on Travis CI
- Warning related to key word argument HOT 3
- Is ruby2_keywords also required here? HOT 5
- Potential thread safety issue? HOT 4
- Remove support for 1.8.7 and perhaps all EOL Rubies HOT 1
- Use Rubocop in CI HOT 1
- Move from Travis CI to Github Actions (blocked by Ruby < 2.1 support) HOT 4
- Add Dependabot HOT 1
- Use docile with root class declaration HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docile.