Sha256: c4109d6fb0b8b6b046fc98a170d26832e48db4356ef819a67c7e7fe5b7a0b54d
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
module Vedeu module Bindings # Provides events to refresh the view. # module Refresh extend self # Setup events relating to running Vedeu. This method is called # by Vedeu. # # @return [TrueClass] def setup! refresh! refresh_cursor! refresh_group! refresh_view! end private # :nocov: # See {file:docs/events/refresh.md#\_refresh_} def refresh! Vedeu.bind(:_refresh_) { Vedeu::Output::Refresh.all } end # See {file:docs/events/refresh.md#\_refresh_cursor_} def refresh_cursor! Vedeu.bind(:_refresh_cursor_) do |name| Vedeu::Cursors::Refresh.by_name(name) end end # See {file:docs/events/refresh.md#\_refresh_group_} def refresh_group! Vedeu.bind(:_refresh_group_) do |name| Vedeu::Groups::Refresh.by_name(name) end end # See {file:docs/events/refresh.md#\_refresh_view_} def refresh_view! Vedeu.bind(:_refresh_view_) do |name| Vedeu::Buffers::Refresh.by_name(name) end end # :nocov: end # Refresh end # Bindings end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.6.21 | lib/vedeu/bindings/refresh.rb |
vedeu-0.6.20 | lib/vedeu/bindings/refresh.rb |