Class: Encoding
- Inherits:
-
Object
- Object
- Encoding
- Defined in:
- lib/mqtt/patches/string_encoding.rb
Constant Summary collapse
- UTF_8 =
Encoding.new("UTF-8")
- ASCII_8BIT =
Encoding.new("ASCII-8BIT")
Instance Method Summary collapse
-
#initialize(name) ⇒ Encoding
constructor
A new instance of Encoding.
- #name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Encoding
Returns a new instance of Encoding.
20 21 22 |
# File 'lib/mqtt/patches/string_encoding.rb', line 20 def initialize(name) @name = name end |
Instance Method Details
#name ⇒ Object
28 29 30 |
# File 'lib/mqtt/patches/string_encoding.rb', line 28 def name @name end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/mqtt/patches/string_encoding.rb', line 24 def to_s @name end |