Class: Reflex::CaptureEvent
- Inherits:
-
Object
- Object
- Reflex::CaptureEvent
- Defined in:
- lib/reflex/capture_event.rb
Instance Method Summary collapse
- #begin ⇒ Object
- #begin?(*symbols) ⇒ Boolean
- #end ⇒ Object
- #end?(*symbols) ⇒ Boolean
- #inspect ⇒ Object
Instance Method Details
#begin ⇒ Object
12 13 14 |
# File 'lib/reflex/capture_event.rb', line 12 def begin () CAPTURE_FLAG.bits2symbols get_begin end |
#begin?(*symbols) ⇒ Boolean
16 17 18 19 |
# File 'lib/reflex/capture_event.rb', line 16 def begin? (*symbols) bits = CAPTURE_FLAG.symbols2bits *symbols (bits & get_begin) == bits end |
#end ⇒ Object
21 22 23 |
# File 'lib/reflex/capture_event.rb', line 21 def end () CAPTURE_FLAG.bits2symbols get_end end |
#end?(*symbols) ⇒ Boolean
25 26 27 28 |
# File 'lib/reflex/capture_event.rb', line 25 def end? (*symbols) bits = CAPTURE_FLAG.symbols2bits *symbols (bits & get_end) == bits end |
#inspect ⇒ Object
30 31 32 |
# File 'lib/reflex/capture_event.rb', line 30 def inspect () "#<Reflex::CaptureEvent begin:#{self.begin} end:#{self.end}}>" end |