Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazibear/rubyscript
attempt to convert ruby syntax to JS syntax
https://github.com/fazibear/rubyscript
Last synced: about 1 month ago
JSON representation
attempt to convert ruby syntax to JS syntax
- Host: GitHub
- URL: https://github.com/fazibear/rubyscript
- Owner: fazibear
- Created: 2015-11-15T13:58:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T18:46:25.000Z (about 9 years ago)
- Last Synced: 2024-05-01T19:58:04.007Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 0 Bytes
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ruby_script
Attempt to convert ruby syntax to JS syntax
## usage
```
$ bundle install
$ ruby lib/ruby_script.rb examples/test.rb
```## input
```ruby
def costam(a,b,c)
5
endTest.new.x(e)
consol.log(costam(4))
```## output
```js
var costam = function(a, b, c){
return 5;
}Test.new().x(e())
consol().log(costam(4))
```