class BentleyMcIlroy::Block
A fixed block of text, appearing in the original text at one of 0..b-1, b..2b-1, 2b..3b-1, …
Attributes
position[R]
text[R]
Public Class Methods
new(text, position)
click to toggle source
# File lib/bentley_mcilroy.rb, line 9 def initialize(text, position) @text = text @position = position end
Public Instance Methods
hash()
click to toggle source
# File lib/bentley_mcilroy.rb, line 14 def hash RollingHash.new.hash(text) end