rubex

https://github.com/sciruby/rubex

Ruby

rubex - A Ruby-like language for writing Ruby C extensions.

Rubex::AST::Expression::MethodCall#method_not_within_scope?

Checks if method being called is of the same type of the caller. For
example, only instance methods can call instance methods and only 
class methods can call class methods. C functions are accessible from
both instance methods and class methods.

Since there is no way to determine whether methods outside the scope
of the compiled Rubex file are singletons or not, Rubex will assume
that they belong to the correct scope and will compile a call to those
methods anyway. Error, if any, will be caught only at runtime.

Source | Google | Stack overflow

Edit

git clone [email protected]:sciruby/rubex.git

cd rubex

open lib/rubex/ast/expression/method_call.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rubex--AST--Expression--MethodCall-method_not_within_scope--for-pr


# Commit to git

git add lib/rubex/ast/expression/method_call.rbgit commit -m "better docs for Rubex::AST::Expression::MethodCall#method_not_within_scope?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rubex--AST--Expression--MethodCall-method_not_within_scope--for-pr

hub pull-request


# Celebrate!