jeygem 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jeygem.rb +36 -0
- metadata +65 -0
data/lib/jeygem.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
class Screen
|
2
|
+
def self.clean
|
3
|
+
100.times do
|
4
|
+
puts ""
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def clear
|
10
|
+
100.times do
|
11
|
+
puts ""
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def pi
|
16
|
+
3.14159265358979
|
17
|
+
end
|
18
|
+
|
19
|
+
class Maths
|
20
|
+
def self.pi
|
21
|
+
3.14159265358979
|
22
|
+
end
|
23
|
+
def self.times(num1, num2)
|
24
|
+
puts "#{num1} * #{num2} = #{num1 * num2}"
|
25
|
+
end
|
26
|
+
def self.plus(num1, num2)
|
27
|
+
puts "#{num1} + #{num2} = #{num1 + num2}"
|
28
|
+
end
|
29
|
+
def self.minus(num1, num2)
|
30
|
+
puts "#{num1} - #{num2} = #{num1 - num2}"
|
31
|
+
end
|
32
|
+
def self.help()
|
33
|
+
puts "Hello and welcome to the Maths Class. You can perform many tasks with this amazing thing. You can e.g Type in Maths.times(12.23, pi) and it's going to calculate 12.23 * PI"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jeygem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 0.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Marvin Johanning
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-04-28 00:00:00 Z
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: Test
|
22
|
+
email: marvin-johanning@web.de
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files: []
|
28
|
+
|
29
|
+
files:
|
30
|
+
- lib/jeygem.rb
|
31
|
+
homepage: http://jeytasgame.de.vc
|
32
|
+
licenses:
|
33
|
+
- MIT
|
34
|
+
post_install_message:
|
35
|
+
rdoc_options: []
|
36
|
+
|
37
|
+
require_paths:
|
38
|
+
- lib
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
hash: 3
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
version: "0"
|
57
|
+
requirements: []
|
58
|
+
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 1.8.15
|
61
|
+
signing_key:
|
62
|
+
specification_version: 3
|
63
|
+
summary: Test
|
64
|
+
test_files: []
|
65
|
+
|