Class: Encoding

Inherits:
Object show all
Defined in:
lib/rubinius/bridge/encoding.rb

Constant Summary collapse

ASCII_8BIT =
new "ASCII-8BIT"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/rubinius/bridge/encoding.rb', line 3

def name
  @name
end