Module: Warbler::Trait::ClassMethods

Defined in:
lib/warbler/traits.rb

Instance Method Summary collapse

Instance Method Details

#<=>(o) ⇒ Object



52
53
54
# File 'lib/warbler/traits.rb', line 52

def <=>(o)
  requires?(o) ? 1 : (o.requires?(self) ? -1 : 0)
end

#requires?(t) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/warbler/traits.rb', line 56

def requires?(t)
  false
end