RB File Documentation


Overview

Feature Value
Extension .rb
MIME Type text/x-ruby or application/x-ruby
File Type Ruby Source Code
Programming Language Ruby
Developer Yukihiro Matsumoto
Initial Release Date 1995
Character Encoding Flexible, commonly UTF-8
Usage Development, Scripting
Open With Text Editors, IDEs
Comment Syntax # (single line), =begin and =end (multi-line)
Variable Declaration No explicit type required
Paradigm Object-oriented, imperative, functional, reflective
Script Execution Command ruby filename.rb
Package Manager RubyGems
Gem File Extension .gem
Frameworks Rails, Sinatra
Interactive Ruby Shell IRB
Method Definition Syntax def method_name
Typing Discipline Dynamic, Strong
Error Handling Exceptions
Class Definition Syntax class ClassName
Module Inclusion include ModuleName