Tiu dosiero servas kiel rubejo de ideoj kaj trovoj
https://github.com/rahulraj/virtual_keywords
- Compiles reader methods so we don't have to go through method_missing.
- see lib/active_support/configurable.rb in active record for example
class Configuration < ActiveSupport::InheritableOptions
def compile_methods!
self.class.compile_methods!(keys)
end
# Compiles reader methods so we don't have to go through method_missing.
def self.compile_methods!(keys)
keys.reject { |m| method_defined?(m) }.each do |key|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
def #{key}; _get(#{key.inspect}); end
RUBY
end
end
end
- Misc #12722: Localizing Ruby
- Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtime
- Class: Ripper (Ruby 2.0.0) ivas disleksigilon
- alias keyword
- rexical
- Where are keywords defined in Ruby?
- RubyScript - A transcompiler transforming a subset of Ruby to JavaScript
- ParseTree
- RubyInline
- Creating a REPL