Sha256: 91a6a7a4cbb5fe75f4cdd6a70c15f24ddcbec6178d0dc1bf444f9efca4cf1e06
Contents?: true
Size: 408 Bytes
Versions: 22
Compression:
Stored size: 408 Bytes
Contents
# Concept from dm-core class Operator attr_reader :target, :operator, :prefix def initialize(target, operator, prefix=false) @target = target.to_ga @operator = operator @prefix = prefix end def to_ga @prefix ? "#{operator}#{target}" : "#{target}#{operator}" end def ==(rhs) target == rhs.target && operator == rhs.operator && prefix == rhs.prefix end end
Version data entries
22 entries across 22 versions & 4 rubygems