lib/vedeu/bindings/system.rb in vedeu-0.6.1 vs lib/vedeu/bindings/system.rb in vedeu-0.6.2

- old
+ new

@@ -3,15 +3,10 @@ module Bindings # Creates system events which when called provide a variety of core # functions and behaviours. They are soft-namespaced using underscores. # - # @note - # Unbinding any of these events is likely to cause problems, so I would - # advise leaving them alone. A safe rule: when the name starts with an - # underscore, it's probably used by Vedeu internally. - # # :nocov: module System extend self @@ -167,10 +162,10 @@ # @example # Vedeu.trigger(:_mode_switch_) # # @return [TrueClass] def mode_switch! - Vedeu.bind(:_mode_switch_) { fail Vedeu::ModeSwitch } + Vedeu.bind(:_mode_switch_) { fail Vedeu::Error::ModeSwitch } end # When triggered will cause Vedeu to trigger the `:_clear_` and # `:_refresh_` events. Please see those events for their behaviour. #