Sha256: fd88a464136fb2e5b93c39d49ef978e35f4f4056209ef7f5f39263e00efcb9aa
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
module Parklife class Route attr_reader :crawl, :path def initialize(path, crawl:) @path = path @crawl = crawl end def ==(other) path == other.path && crawl == other.crawl end alias_method :eql?, :== def hash [self.class, path, crawl].hash end def inspect %(<#{self.class.name} path="#{path}" crawl="#{crawl}">) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
parklife-0.4.0 | lib/parklife/route.rb |
parklife-0.3.0 | lib/parklife/route.rb |
parklife-0.2.0 | lib/parklife/route.rb |