Method: NameFinder::Buffer#initialize
- Defined in:
- lib/name_finder/buffer.rb
#initialize(string, position = 0) ⇒ Buffer
Returns a new instance of Buffer.
3 4 5 6 7 |
# File 'lib/name_finder/buffer.rb', line 3 def initialize(string, position = 0) @string = string @position = position @length = string.length end |