Join Now

This page was last modified 13:11, 25 April 2007.

Category:Ruby

From Forum Nokia Wiki

Ruby is a reflective, object-oriented programming language with sort of a hybrid syntax which combines elements from Perl, Python, Lisp, Dylan and CLU - now has its Symbian version.


Ruby for Symbian OS

S60 3rd and UIQ3 available version. Ruby for Symbian OS UI platforms with extendable mobile libraries by Symbian.

Below you found what you can do with specific phone library (Genesis) not with standard library which is completed.

# THE POC(Proof Of Concept) library ...
include GenesisModule
 
 
screen = Screen.new
 
# clear screen
screen.clear  # screen.clear()
 
# draw rectangle at (5,5) width=10 height=10
screen.fillRect(5, 5, 10, 10) # 
 
# draw line from (10,10) to (50,50) 
screen.drawLine(10, 10, 50, 50) #
 
# draw an ellipse at (50,50) width 120 height 140
screen.fillEllipse(50, 50, 120, 140) #
 
# wait 3 seconds
wait(3000)
 
# play wav file
player = MultiMediaPlayer.new
player.play "C:\\sound.wav"
 
# sms has only a stub class (will be implemented soon :)
# sms = Sms.new
# sms.send()
 
# doesn't work !  
# screen.drawText(15, 15,'Hello Ruby !')
 
# input function
string = getUserInput("title")
puts string;


Ruby S60 2nd

Port of Ruby language for Symbian S60 2nd edition.


So far, Symbian or Ruby havn't support Ruby language for Symbian S60 2nd edition. We hope it will be release soon.

Articles in category "Ruby"

There is one article in this category.

R

 
Powered by MediaWiki