Class: Symbol

Inherits:
Object show all
Defined in:
lib/cuts/cut.rb

Instance Method Summary collapse

Instance Method Details

#<(klass) ⇒ Object

A little tick to simulate subclassing literal syntax.



112
113
114
115
116
117
118
119
# File 'lib/cuts/cut.rb', line 112

def <(klass)
  if Class === klass
    [self, klass]
  else
    raise NoMethodError, "undefined method `<' for :#{self}:Symbol"
    #_op_lt_without_cuts(cut_class)
  end
end