Sha256: 2726f3fc32087ceb17b4ad371ce276d40da2c7e10fc5c078592a8f902cefccc7
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
module Fusuma # manage actions class Pinch BASE_THERESHOLD = 0.3 def initialize(diameter) @diameter = diameter.to_f end attr_reader :diameter def direction return 'in' if diameter > 0 'out' end def enough_diameter? MultiLogger.debug(diameter: diameter) diameter.abs > threshold end def threshold @threshold ||= BASE_THERESHOLD * Config.threshold('pinch') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fusuma-0.2.2 | lib/fusuma/pinch.rb |