Class: Machines::NamedBuffer
- Inherits:
-
StringIO
- Object
- StringIO
- Machines::NamedBuffer
- Defined in:
- lib/machines/named_buffer.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, string) ⇒ NamedBuffer
constructor
A new instance of NamedBuffer.
Constructor Details
#initialize(name, string) ⇒ NamedBuffer
Returns a new instance of NamedBuffer.
5 6 7 8 |
# File 'lib/machines/named_buffer.rb', line 5 def initialize name, string super string @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/machines/named_buffer.rb', line 3 def name @name end |