Class: StringIO::Data
- Inherits:
-
Object
- Object
- StringIO::Data
- Defined in:
- lib/rubysl/stringio/stringio.rb
Instance Attribute Summary collapse
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(string) ⇒ Data
Returns a new instance of Data.
13 14 15 16 |
# File 'lib/rubysl/stringio/stringio.rb', line 13 def initialize(string) @string = string @pos = @lineno = 0 end |
Instance Attribute Details
#lineno ⇒ Object
Returns the value of attribute lineno.
11 12 13 |
# File 'lib/rubysl/stringio/stringio.rb', line 11 def lineno @lineno end |
#pos ⇒ Object
Returns the value of attribute pos.
11 12 13 |
# File 'lib/rubysl/stringio/stringio.rb', line 11 def pos @pos end |
#string ⇒ Object
Returns the value of attribute string.
11 12 13 |
# File 'lib/rubysl/stringio/stringio.rb', line 11 def string @string end |