Class: Object

Inherits:
BasicObject
Defined in:
lib/superators19/monkey_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#superator_queueObject (readonly)

Returns the value of attribute superator_queue.



2
3
4
# File 'lib/superators19/monkey_patch.rb', line 2

def superator_queue
  @superator_queue
end

Instance Method Details

#+@Object



11
12
13
14
15
16
# File 'lib/superators19/monkey_patch.rb', line 11

def +@
  extend SuperatorFlag
  @superator_queue ||= []
  @superator_queue.unshift '+'
  self
end

#-@Object



4
5
6
7
8
9
# File 'lib/superators19/monkey_patch.rb', line 4

def -@
  extend SuperatorFlag
  @superator_queue ||= []
  @superator_queue.unshift '-'
  self
end

#~@Object



18
19
20
21
22
23
# File 'lib/superators19/monkey_patch.rb', line 18

def ~@
  extend SuperatorFlag
  @superator_queue ||= []
  @superator_queue.unshift '~'
  self
end