Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogoandre/methodmissingbug-
https://github.com/diogoandre/methodmissingbug-
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/diogoandre/methodmissingbug-
- Owner: DiogoAndre
- Created: 2014-09-04T18:00:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T18:06:34.000Z (over 10 years ago)
- Last Synced: 2024-11-10T16:52:49.792Z (2 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MethodMissingBug-
=================```ruby
def method_missing(method_name, *args, &block)
puts "method_name => #{method_name}, args => #{args}"
end
``````ruby
my_class.my_method("value", my_symbol: 1) # will return the symbol on repl
my_class.my_method("value", my_symbol: 2) # will not return the symbol on repl
``````ruby
method_name => my_method:my_symbol:, args => ["value", {:my_symbol=>1}]
method_name => my_method:my_symbol:, args => ["value", 2]
```