Englishest
In a nutshell, with this gem enabled you can now spell <=>
as trichotomize
,
and so on.
This gem aims to provides alternative ways to utter Ruby code, simply defining synonyms for miscellaneous terms, especially offering full word counterpart to ideograms/logograms such as the so called spaceship operator.
The name of the gem is of course a pun: a library which provides ability to utter code which is closer to a voiceable English obviously ought to do it so through an obvious transgression of this language usual rules on superlatives.
Installation
Add this line to your application's Gemfile:
gem 'englishest'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install englishest
Usage
TODO: Write usage instructions here
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/psychoslave/englishest].
License
The gem is available as open source under the terms of the MIT License.
References
Resources consulted while hacking this gem:
- https://bundler.io/guides/creating_gem.html
- https://en.wikipedia.org/wiki/Three-way_comparison#Spaceship_operator
- https://en.wikipedia.org/wiki/Trichotomy_(mathematics)
- https://github.com/banister/binding_of_caller
- https://guides.rubygems.org/patterns/
- https://guides.rubygems.org/patterns/
- https://ruby-doc.org/core-2.5.0/Comparable.html
- https://stackoverflow.com/questions/1356749/can-you-eval-code-in-the-context-of-a-caller-in-ruby
- https://www.geeksforgeeks.org/ruby-pre-define-variables-constants/
- https://www.includehelp.com/ruby/alias-vs-alias_method-in-ruby.aspx
- https://www.toptal.com/ruby/ruby-metaprogramming-cooler-than-it-sounds
- http://www.rubyinside.com/rubys-unary-operators-and-how-to-redefine-their-functionality-5610.html
- https://www.saturnflyer.com/blog/the-difference-between-instanceeval-and-instanceexec/
- https://dejimata.com/2017/5/20/the-ruby-module-builder-pattern
- https://stackoverflow.com/questions/51138274/list-all-ruby-classes-and-methods
- https://stackoverflow.com/questions/12274652/what-is-argf-class-in-ruby-1-9
- https://c-for-dummies.com/blog/?p=4813
- https://en.wikipedia.org/wiki/Glob_(programming)
- https://learning.oreilly.com/library/view/metaprogramming-ruby-2/9781941222751/
- https://learning.oreilly.com/library/view/the-book-of/9781593272944/
- https://learning.oreilly.com/library/view/polished-ruby-programming/9781801072724/
- https://stackoverflow.com/a/4471202/1307778
- http://tech.natemurray.com/2007/03/ruby-shell-commands.html
- https://stackoverflow.com/questions/7829157/method-overriding-in-ruby#7829215
- https://stackoverflow.com/questions/27965944/ruby-check-number-of-arguments-passed-from-instantiated-class-to-the-method-of
- https://stackoverflow.com/questions/4683844/ruby-how-do-i-pass-all-parameters-and-blocks-received-by-one-method-to-another
- https://stackoverflow.com/questions/21257595/ruby-difference-between-and
- https://en.wikipedia.org/wiki/Evaluation_strategy#Eager_evaluation
- https://en.wikipedia.org/wiki/Short-circuit_evaluation