toc 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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/toc.rb +33 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5bba1ae6b911ee2554f96bc0873a7d1af9ebbfb7
4
+ data.tar.gz: b9658a9901a050cf8106b5b0ba8bcc0a731ed7a1
5
+ SHA512:
6
+ metadata.gz: 5232358b92e0f39d2f62eb24a73076514999a4929e38fea8541428866192783d37ca80652f97fa8b7f349ef6a6ad0b3c364d297a3df3ba40e4aec62f1e862ec8
7
+ data.tar.gz: 5d8d3d66a3dfd48f2653af445212c79447be8f084b513107ce23aadb754caffb3d7b72f4bd2cb52a8b8054c0f47966ff33bc96a393db83b28048c84970b2af4d
data/lib/toc.rb ADDED
@@ -0,0 +1,33 @@
1
+ class String
2
+ def change(colour_code)
3
+ "\033[#{colour_code}m#{self}\033[0m"
4
+ end
5
+
6
+ def black
7
+ change 30
8
+ end
9
+
10
+ def red
11
+ change 31
12
+ end
13
+
14
+ def green
15
+ change 32
16
+ end
17
+
18
+ def yellow
19
+ change 33
20
+ end
21
+
22
+ def pink
23
+ change 34
24
+ end
25
+
26
+ def purple
27
+ change 35
28
+ end
29
+
30
+ def light_blue
31
+ change 36
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: toc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Tim Green
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: tiimgreen@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/toc.rb
20
+ homepage: https://github.com/tiimgreen/toc
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.1.11
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Colour your outputs to the console.
44
+ test_files: []
45
+ has_rdoc: