Sha256: 990c337c925edb6c230f832b260bd02c972527a1188b7be091472b5e5c66f2a9

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

require 'singleton'

class ProconBypassMan::ProconDisplay::Status
  include Singleton

  # @return [Hash]
  def current
    @current || {}
  end

  # @return [void]
  # @param [Hash] value
  # NOTE: valueには参照が入ってくるので変更する時はdupすること
  def current=(value)
    if value.is_a?(Hash)
      @current = value
    else
      @current = nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.6 lib/procon_bypass_man/procon_display/status.rb