Class: Encoding
Constant Summary collapse
- ASCII_8BIT =
new "ASCII-8BIT"
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "US-ASCII") ⇒ Encoding
constructor
A new instance of Encoding.
Constructor Details
#initialize(name = "US-ASCII") ⇒ Encoding
Returns a new instance of Encoding.
5 6 7 |
# File 'lib/rubinius/bridge/encoding.rb', line 5 def initialize(name="US-ASCII") @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rubinius/bridge/encoding.rb', line 3 def name @name end |