Class: HelloRuby
- Inherits:
-
Object
- Object
- HelloRuby
- Defined in:
- lib/hello_ruby.rb
Class Method Summary collapse
Class Method Details
.creator ⇒ Object
10 11 12 |
# File 'lib/hello_ruby.rb', line 10 def self.creator puts "Yukihiro Matsumoto (Matz)" end |
.hi ⇒ Object
2 3 4 |
# File 'lib/hello_ruby.rb', line 2 def self.hi puts "Hello ruby!" end |
.info ⇒ Object
14 15 16 |
# File 'lib/hello_ruby.rb', line 14 def self.info puts "Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro Matsumoto in Japan. According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp." end |
.license ⇒ Object
22 23 24 |
# File 'lib/hello_ruby.rb', line 22 def self.license puts "Ruby, GPLv2 or 2-clause BSD license" end |
.os ⇒ Object
18 19 20 |
# File 'lib/hello_ruby.rb', line 18 def self.os puts "Cross-platform" end |
.version ⇒ Object
6 7 8 |
# File 'lib/hello_ruby.rb', line 6 def self.version puts "2.4.0" end |