Class: Reflex::CaptureEvent
- Inherits:
-
Event
- Object
- Event
- 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
10 11 12 |
# File 'lib/reflex/capture_event.rb', line 10 def begin() View.capture_flag.bits2symbols get_begin end |
#begin?(*symbols) ⇒ 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 |
#end ⇒ Object
19 20 21 |
# File 'lib/reflex/capture_event.rb', line 19 def end() View.capture_flag.bits2symbols get_end end |
#end?(*symbols) ⇒ 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 |
#inspect ⇒ Object
28 29 30 |
# File 'lib/reflex/capture_event.rb', line 28 def inspect() "#<Reflex::CaptureEvent begin:#{self.begin} end:#{self.end}}>" end |