lib/bencode/integer.rb in bencode_blatyo-1.0.0 vs lib/bencode/integer.rb in bencode_blatyo-1.0.1

- old
+ new

@@ -7,11 +7,11 @@ # Encodes object into a bencoded integer. BEncoded strings are length-prefixed base ten followed by a colon and # the string. Object must implement to_i or to_int. # # 1.bencode #=> "i1e" # - # @return [String] the bencoded integer + # @return [::String] the bencoded integer def bencode (respond_to?(:to_i) ? to_i : to_int).bencode end end end @@ -43,10 +43,10 @@ # in base 10 followed by an 'e'. # # 3.bencode #=> "i3e" # -3.bencode #=> "i-3e" # - # @return [String] the bencoded integer + # @return [::String] the bencoded integer def bencode [:i, self, :e].join end end \ No newline at end of file