Sha256: 10a96b7339fa2327d5b1da8c42c2cf39f300e8a5d4d0964c7478d00a57b60704

Contents?: true

Size: 365 Bytes

Versions: 8

Compression:

Stored size: 365 Bytes

Contents

module ProconBypassMan::ProconDisplay::BypassHook
  include ProconBypassMan::Callbacks

  define_callbacks :run

  set_callback :run, :after, :write_procon_display_status

  def write_procon_display_status
    return unless bypass_value.binary
    ProconBypassMan::ProconDisplay::Status.instance.current = bypass_value.binary.to_procon_reader.to_hash.dup
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.5 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/procon_display/bypass_hook.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/procon_display/bypass_hook.rb