Skip to content

Commit

Permalink
Merge pull request #8 from dinjas/doc/add_attr_readers_to_example_code
Browse files Browse the repository at this point in the history
Add attr_reader to example code
  • Loading branch information
mbj committed Oct 8, 2018
2 parents 77e5514 + 977052e commit fb841d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -25,7 +25,7 @@ class Greeter
end

def call
"Hello #{text}"
"Hello #{@text}"
end
end

Expand All @@ -39,7 +39,7 @@ class Printer
end

def print
"Hello #{text}"
"Hello #{@text}"
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/procto.rb
Expand Up @@ -18,7 +18,7 @@ class Procto < Module
# end
#
# def call
# "Hello #{text}"
# "Hello #{@text}"
# end
# end
#
Expand All @@ -34,7 +34,7 @@ class Procto < Module
# end
#
# def print
# "Hello #{text}"
# "Hello #{@text}"
# end
# end
#
Expand Down

0 comments on commit fb841d5

Please sign in to comment.