bmi-Gionani 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/bmi-Gionani.rb +14 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c41515470c54ec388b91654ec7a85d62016d0db9
4
+ data.tar.gz: e7829eef16c465c98d9111773a2dad21431ca3d7
5
+ SHA512:
6
+ metadata.gz: e37263b02c7078c65529207c706febaf8d2b1ed5974904b5d2531b2b6aaf25b0608d4b5ab63eda99200f0dad44f854645a2c6bedde6dccabd128dd8363c417cf
7
+ data.tar.gz: 9263478b662d374598a39235623b4b1ae303ff82cd41165b7e0ae4187842493dbc28712b3a2ac835ac8d8aad4b263acbec6bc359428642d9605029603e9f2de1
@@ -0,0 +1,14 @@
1
+ class GemaPeso
2
+ attr_accessor :peso, :altura
3
+
4
+ def initialize(peso, altura)
5
+ @weight=peso
6
+ @height=altura
7
+ end
8
+
9
+ def calcularpeso
10
+ @masa = @weight / (@height * @height)
11
+ puts 'Su masa corporal es: '+ @masa.to_s
12
+ end
13
+
14
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bmi-Gionani
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Christian Giovani Santiago Vera
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: CMP
14
+ email: montana_malboro_montana@hotmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/bmi-Gionani.rb
20
+ homepage: https://github.com/Gionani/bmi-Gionani
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.4.6
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Calcular masa corporal
44
+ test_files: []