Skip to content

Commit da23a9c

Browse files
committed
doc: add documentation
1 parent 514fdf8 commit da23a9c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

hello_meleu.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ Gem::Specification.new do |s|
33
s.authors = ['meleu']
44
s.files = ['lib/hello_meleu.rb']
55
s.summary = 'Greeting meleu'
6-
s.version = '0.0.2'
6+
s.version = '0.0.3'
77

88
s.homepage = 'https://github.com/meleu/hello_meleu'
99
s.metadata = {
1010
'bug_tracker_uri' => "#{s.homepage}/issues",
1111
'changelog_uri' => "#{s.homepage}/releases",
1212
'wiki_uri' => "#{s.homepage}/wiki",
13-
'source_code_uri' => s.homepage
13+
'source_code_uri' => s.homepage,
14+
'documentation_uri' => 'https://www.rubydoc.info/gems/hello_meleu'
1415
}
1516
end

lib/hello_meleu.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
# Class used to greet meleu with "hello".
2+
#
3+
# @examples
4+
# HelloMeleu.hello #=> "Hello meleu!"
15
class HelloMeleu
6+
# Greets meleu with "hello".
7+
#
8+
# @return [String] "Hello meleu!"
29
def self.hello
310
'Hello meleu!'
411
end

0 commit comments

Comments
 (0)