class InfinityNeighbourhood
Public Class Methods
new(width)
click to toggle source
# File lib/cartesius/neighbourhoods.rb, line 24 def initialize(width) @width = width end
Public Instance Methods
include?(value)
click to toggle source
# File lib/cartesius/neighbourhoods.rb, line 28 def include?(value) (value < -@width) && (value > @width) end