Skip to content

Commit 189a48f

Browse files
committed
Add 'name' stub to String patches. Update .gitignore
1 parent 582f28d commit 189a48f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.bundle
22
.ruby-version
3+
.ruby-gemset
34
.yardoc
45
*.gem
56
coverage

lib/mqtt/patches/string_encoding.rb

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def initialize(name)
2424
def to_s
2525
@name
2626
end
27+
28+
def name
29+
@name
30+
end
2731

2832
UTF_8 = Encoding.new("UTF-8")
2933
ASCII_8BIT = Encoding.new("ASCII-8BIT")

0 commit comments

Comments
 (0)