Class: Encoding
- Inherits:
-
Object
- Object
- Encoding
- Defined in:
- lib/mqtt/patches/string_encoding.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Encoding
constructor
A new instance of Encoding.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Encoding
Returns a new instance of Encoding.
22 23 24 |
# File 'lib/mqtt/patches/string_encoding.rb', line 22 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/mqtt/patches/string_encoding.rb', line 20 def name @name end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/mqtt/patches/string_encoding.rb', line 26 def to_s @name end |