Class: Reflex::CaptureEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/reflex/capture_event.rb

Instance Method Summary collapse

Instance Method Details

#beginObject



13
14
15
# File 'lib/reflex/capture_event.rb', line 13

def begin ()
  View.capture_flag.bits2symbols get_begin
end

#begin?(*symbols) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
20
# File 'lib/reflex/capture_event.rb', line 17

def begin? (*symbols)
  bits = View.capture_flag.symbols2bits *symbols
  (bits & get_begin) == bits
end

#endObject



22
23
24
# File 'lib/reflex/capture_event.rb', line 22

def end ()
  View.capture_flag.bits2symbols get_end
end

#end?(*symbols) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
29
# File 'lib/reflex/capture_event.rb', line 26

def end? (*symbols)
  bits = View.capture_flag.symbols2bits *symbols
  (bits & get_end) == bits
end

#inspectObject



31
32
33
# File 'lib/reflex/capture_event.rb', line 31

def inspect ()
  "#<Reflex::CaptureEvent begin:#{self.begin} end:#{self.end}}>"
end