Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtyler/javaone-jruby-demo
Demo scripts for the JavaOne 2014 Script Bowl
https://github.com/rtyler/javaone-jruby-demo
Last synced: 27 days ago
JSON representation
Demo scripts for the JavaOne 2014 Script Bowl
- Host: GitHub
- URL: https://github.com/rtyler/javaone-jruby-demo
- Owner: rtyler
- Created: 2014-09-28T23:33:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-01T23:46:39.000Z (about 10 years ago)
- Last Synced: 2024-11-26T21:03:08.628Z (29 days ago)
- Language: Ruby
- Size: 230 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JRuby/Java demos
## About this repo
This repository is a collection of demos and scripts
## Demos
* `turtles/` - demonstrates embedding a new `Ruby` runtime environment within
JRuby to provide environment separation
* `ascii-table-from-jar.rb` - taking a random jar file from the internet and
putting it to use within JRuby
* `jfiglet-hello-world.rb` - using
[JFiglet](https://github.com/lalyos/jfiglet) to say hello
* `anonymous-classes.rb` - simple little demo using `java.lang.Thread` to
demonstrate automatic anonymous class conversion from blocks in JRuby### Using Pry + RDoc
In order to use RDoc from within the Pry interpreter, you will need to run
`rdoc-data --install`. Then from within Pry you can call `ri`:```
[1] pry(main)> ri String.count
String.count(from ruby core)
------------------------------------------------------------------------------
str.count([other_str]+) -> fixnum...
```