veeru 1.1

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/veeru.rb +19 -0
  3. metadata +43 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 51eb3230ff5e1ba87d4c302bc0ea257c96047852
4
+ data.tar.gz: ba6caf0525346b3de7d436f227ab059593d9faac
5
+ SHA512:
6
+ metadata.gz: a802065e85e54b1bf1390b451724bd5d728d371dca4ff9123c7e437e3ba4446ab9df203f641fe1375badcbdab408a11da5a50d057e5277569810511e512e7fe0
7
+ data.tar.gz: 1da0a8801e9daea4484e429f0db7f2ab320698449517a60242c51eb213e116fc7f124268ecdd30af1ddec6c8eeba4fbfb1ce9ef249f954482db4ae32da4941ac
@@ -0,0 +1,19 @@
1
+ module Mathematics
2
+ class Arithmetic
3
+ def self.add(a,b)
4
+ puts "The sum of two numbers are: #{a+b}"
5
+ end
6
+ def self.sub(a,b)
7
+ puts "The subtraction of two numbers are: #{a-b}"
8
+ end
9
+ def self.mul(a,b)
10
+ puts "The multiplication of two numbers are: #{a*b}"
11
+ end
12
+ def self.div(a,b)
13
+ puts "The Division of two numbers are: #{a/b}"
14
+ end
15
+ def self.square(a,b)
16
+ puts "The #{a} power #{b} is : #{a**b}"
17
+ end
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: veeru
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.1'
5
+ platform: ruby
6
+ authors:
7
+ - Veerababu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/veeru.rb
20
+ homepage:
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.0.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: A simple gem is for doing mathematical operations
43
+ test_files: []