useful 0.0.1 → 0.0.2
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/useful/main.rb +14 -2
- metadata +2 -1
data/lib/useful/main.rb
CHANGED
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
module Useful
|
|
3
3
|
class Main
|
|
4
4
|
|
|
5
|
+
# Creates a new instance of the "Useful::Main" class
|
|
5
6
|
def initialize
|
|
6
|
-
|
|
7
|
+
# nothing to do
|
|
7
8
|
end
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
# Tests if gem is working by printing "Hello, usefulgem here."
|
|
12
|
+
# to the screen
|
|
13
|
+
#
|
|
14
|
+
# Example:
|
|
15
|
+
# >> useful = Useful::Main.new
|
|
16
|
+
# >> useful.hello
|
|
17
|
+
# => Hello, usefulgem here.
|
|
18
|
+
#
|
|
19
|
+
#
|
|
20
|
+
#
|
|
21
|
+
def self.hello
|
|
10
22
|
puts "Hello, usefulgem here."
|
|
11
23
|
end
|
|
12
24
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: useful
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -43,3 +43,4 @@ signing_key:
|
|
|
43
43
|
specification_version: 3
|
|
44
44
|
summary: Useful
|
|
45
45
|
test_files: []
|
|
46
|
+
has_rdoc:
|