Class: Nydp::StringReader
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, string) ⇒ StringReader
constructor
A new instance of StringReader.
- #nextline ⇒ Object
- #read ⇒ Object
Constructor Details
#initialize(name, string) ⇒ StringReader
Returns a new instance of StringReader.
9 10 11 |
# File 'lib/nydp/runner.rb', line 9 def initialize name, string @name, @string, @read = name, string, string end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/nydp/runner.rb', line 7 def name @name end |