library(RRuby)
RubyInit()
.RubyRequire(system.file("sampleRuby", "global.rb", package = "RRuby"))
.RubyEval("print $x")
.RubyGet("x")
.RubyGet("gi")
.RubyGet("gd")
.RubyGet("fun")
a = .RubyEval( "A.new" )
.Ruby(a, "foo")
.Ruby(a, "withArgs", 2L, 3L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.