Class: Reflex::CaptureEvent

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

Instance Method Summary collapse

Instance Method Details

#beginObject



10
11
12
# File 'lib/reflex/capture_event.rb', line 10

def begin()
  View.capture_flag.bits2symbols get_begin
end

#begin?(*symbols) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#endObject



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

def end()
  View.capture_flag.bits2symbols get_end
end

#end?(*symbols) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#inspectObject



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

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