pyramid_gem 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/pyramid_gem.rb +13 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dd2646b2105c37f85c68725c90a6b51d8809f91e
4
+ data.tar.gz: 05ccfa5ad40160af4f0f03315ec6dea3ab19698c
5
+ SHA512:
6
+ metadata.gz: 7ac47f6f6ba8087e423e249c749c697336365e7ce77867a2fa529f321c92bbdb65c18f0e941bbf09009dfe2b554f0f11d9fe2080cf08830654e20cd7450223cb
7
+ data.tar.gz: 4e00de0204d9143ea968a2d2096b541d7ee204c834cd5e79814fe16b02bebafc73df746b00de738b357b8d9386ef0db16515928fc6603c5c6f16c0a750b485f9
@@ -0,0 +1,13 @@
1
+ class Pyramid
2
+ def rigth
3
+ puts "Enter any number between 1 to 9"
4
+ n = gets.chomp.to_i
5
+ if ((1..9).include?(n))
6
+ puts n.times { |i| puts ('* ' * (i+1)) }
7
+ else
8
+ puts "Wrong input :("
9
+ end
10
+ end
11
+
12
+ Pyramid.new.rigth
13
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pyramid_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ruby Coder Pratham
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Pattern pyramid gem
14
+ email: prathamofficial92@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/pyramid_gem.rb
20
+ homepage:
21
+ licenses:
22
+ - Nonstandard
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.6.10
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Rigth angle triangle
44
+ test_files: []