Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
end

Test.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))
```