18 Jan '14, 6pm

Sam Ruby: Ruby2JS Attribute=>Property support

Ruby2JS Attribute=>Property support Sat 18 Jan 2014 at 15:58 Ruby2JS now maps Ruby attributes to JavaScript properties: Input Ruby: class Person attr_accessor :first_name , :last_name def initialize (first_name, last_name) @first_name = first_name @last_name = last_name end def full_name " #{ @first_name } #{ @last_name } " end end Output JavaScript: function Person (first_name, last_name) { this ._first_name = first_name; this ._last_name = last_name }; Person.prototype = { get first_name() { return this ._first_name }, set first_name(first_name) { this ._first_name = first_name }, get last_name() { return this ._last_name }, set last_name(last_name) { this ._last_name = last_name }, get full_name() { return this ._first_name + " " + this ._last_name } }

Full article: http://www.intertwingly.net/blog/2014/01/18/Ruby2JS-Attri...

Tweets

Walking my way through when I get a chance betw...

rubykoans.com 17 Jan '14, 5pm

Learn Ruby With the Neo Ruby Koans The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is ...

Sam Ruby: Ruby2js += underscore.js

intertwingly.net 23 Jan '14, 6pm

Ruby2js += underscore.js Thu 23 Jan 2014 at 14:52 When compared to Ruby, JavaScript doesn’t have as much functional suppor...

Ruby Programlama Dili

ruby-lang.org 19 Jan '14, 1pm

This translation of www.ruby-lang.org is unmaintained and might contain obsolete information or even errors. Please refer ...

Sam Ruby: Software in 2014:

intertwingly.net 10 Jan '14, 11am

We have a model, view, and controller on the client, seemlessly interacting with the model, view, and controller on the se...

Sam Ruby: Software in 2014

intertwingly.net 10 Jan '14, 8am

We have a model, view, and controller on the client, seemlessly interacting with the model, view, and controller on the se...

Sam Ruby: HTML5 Mode Links

intertwingly.net 13 Jan '14, 7pm

HTML5 Mode Links Mon 13 Jan 2014 at 17:46 Based on a suggestion by Tim Bray, I converted my board agenda Angular.js applic...

Die Programmiersprache Ruby:

ruby-lang.org 19 Jan '14, 11am

...eine dynamische, freie Programmiersprache, die sich einfach anwenden und produktiv einsetzen lässt. Sie hat eine elegan...

"Support for Ruby version 1.9.3 will end on Feb...

ruby-lang.org 10 Jan '14, 3pm

Support for Ruby version 1.9.3 will end on February 23, 2015. Today we are announcing our plans for the future of Ruby ver...

Support for Ruby version 1.9.3 will end on Febr...

ruby-lang.org 10 Jan '14, 1am

Support for Ruby version 1.9.3 will end on February 23, 2015. Today we are announcing our plans for the future of Ruby ver...

Support for Ruby version 1.9.3 will end on Febr...

ruby-lang.org 10 Jan '14, 1am

Support for Ruby version 1.9.3 will end on February 23, 2015. Today we are announcing our plans for the future of Ruby ver...

Le langage Ruby:

ruby-lang.org 22 Jan '14, 8pm

Le support de Ruby 1.9.3 s'achèvera le 23 février 2015 Aujourd’hui, nous annonçons le planning de la fin du support de Rub...

National ‘Shout Out For Solar’ Day Enjoys Broad...

renewableenergyworld.com 16 Jan '14, 4pm

On January 24, 1974 — with Richard Nixon in the White House, but knee deep in the Watergate scandal — five people met in t...

水馬メモ Ruby in Twenty Minutes #SmartNews

ruby-lang.org 15 Jan '14, 12am

This is a small Ruby tutorial that should take no more than 20 minutes to complete. It makes the assumption that you alrea...