Class: HelloRuby

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_ruby.rb

Class Method Summary collapse

Class Method Details

.creatorObject



10
11
12
# File 'lib/hello_ruby.rb', line 10

def self.creator
  puts "Yukihiro Matsumoto (Matz)"
end

.hiObject



2
3
4
# File 'lib/hello_ruby.rb', line 2

def self.hi
  puts "Hello ruby!"
end

.infoObject



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

.licenseObject



22
23
24
# File 'lib/hello_ruby.rb', line 22

def self.license
  puts "Ruby, GPLv2 or 2-clause BSD license"
end

.osObject



18
19
20
# File 'lib/hello_ruby.rb', line 18

def self.os
  puts "Cross-platform"
end

.versionObject



6
7
8
# File 'lib/hello_ruby.rb', line 6

def self.version
  puts "2.4.0"
end