3 ms·
I have yet to see a Ruby "DSL" that didn't feel like Ruby There are some out there though, for eg. FancyRoutes: http://www.railsinside.com/plugins/252-fancyro
by draegtun 17y ago
I have yet to see a Ruby "DSL" that didn't feel like Ruby
There are some out there though, for eg. FancyRoutes: http://www.railsinside.com/plugins/252-fancyroutes-a-nicer-dsl-for-routes-in-rails.html http://www.railsinside.com/plugins/252-fancyroutes-a-nicer-d...
- kscaldef 17y agoReally? That's the example you want to use. First thing I see on that page: get / 'orders' >> :orders > :index with route / :slug / 'order' >> :orders do get > :show put > :update end get {'item_images' => :controller} / :image > :show That looks like Ruby all over the place. Yeah, it overloads operator methods more than most Ruby code, but it's very clear that it's Ruby.
- draegtun 17y agoI and i think most people would disagree with you because above does not "feel like" Ruby.