Sha256: 37dd5f7ea0d0fb7d2c4c3e5593bbecf03bb2898b6b26aeaf05bc645393e7abfe
Contents?: true
Size: 467 Bytes
Versions: 6
Compression:
Stored size: 467 Bytes
Contents
class Usher class Route class Variable attr_reader :type, :name, :validator, :transformer def initialize(type, name, opts = {}) @type = type @name = :"#{name}" @validator = opts[:validator] @transformer = opts[:transformer] end def to_s "#{type}#{name}" end def ==(o) o && (o.type == @type && o.name == @name && o.validator == @validator) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems