Using JRuby : bringing Ruby to Java

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Charles O Nutter; et al
Series: Pragmatic programmers.; Facets of Ruby series
Publisher: Pragmatic Bookshelf
Year: 2011

Language: English
Pages: 347
City: Raleigh

Contents......Page 7
Foreword by Matz......Page 11
Foreword by Bruce Tate......Page 12
Why JRuby?......Page 14
What's in This Book......Page 15
Online Resources......Page 16
Conventions......Page 17
Acknowledgments......Page 18
JRuby Core......Page 19
Getting to Know JRuby......Page 20
Installing JRuby......Page 21
Kicking the Tires......Page 23
The Command Line......Page 24
IDEs......Page 26
The Compiler......Page 28
Java Integration......Page 29
Wrapping Up......Page 30
Seeing Java Through Ruby Glasses......Page 31
Dealing with the Classpath......Page 38
Loading Classes......Page 41
Using Objects......Page 43
Passing Parameters......Page 45
Calling Overloaded Methods......Page 50
Implementing a Java Interface......Page 54
Troubleshooting......Page 55
Wrapping Up......Page 58
Ruby from Java: Embedding JRuby......Page 60
A Real-Life Example: Source Control......Page 61
The Nitty-Gritty......Page 70
Embedding Strategies......Page 74
Wrapping Up......Page 77
Compiler 101......Page 78
A Simple Compiled Example......Page 85
The Details......Page 91
Wrapping Up......Page 96
JRuby and the World......Page 97
What Is Rails?......Page 98
Going Rouge......Page 105
Building Our Models......Page 111
Restaurant Administration 101......Page 118
Open to the Public......Page 122
Wrapping Up......Page 132
Ruby Database Frameworks......Page 133
Ribs......Page 154
JDBC......Page 161
Wrapping Up......Page 164
Rake......Page 165
Ant......Page 173
Maven......Page 180
Packaging for Deployment......Page 183
Wrapping Up......Page 198
Testing Your Code with JRuby......Page 199
Ruby Test Frameworks......Page 200
Mocking and Stubbing......Page 212
Wrapping Up......Page 217
Writing High-Level Tests with Cucumber......Page 218
Acceptance Testing......Page 221
Plugging Into Java......Page 229
Wrapping Up......Page 239
JRuby to the Rescue!......Page 240
Swing......Page 241
Rubeus......Page 246
Monkeybars......Page 250
Limelight......Page 260
Wrapping Up......Page 268
Reference......Page 271
Meet Ruby......Page 272
A Closer Look......Page 275
Getting the Job Done......Page 289
How Method Selection Works......Page 290
Parameter Types......Page 291
Return Values......Page 292
Command-Line Options......Page 294
Properties......Page 306
Foreign-Function Interface......Page 309
Automating Tasks......Page 315
Monitoring Applications......Page 316
Wrapping Up......Page 321
Limelight Example Source......Page 322
Bibliography......Page 330
C......Page 332
J......Page 333
M......Page 334
R......Page 335
T......Page 336
Z......Page 337