class Spty::Command::StateCommand
Constants
- ASCRIPT_PLAYER_STATE
Display the current state of the player.
Public Class Methods
call(_, _command = nil)
click to toggle source
# File lib/spty/commands/state_command.rb, line 7 def self.call(_, _command = nil) return unless running? player_state = Spty::AppleScriptRunner.(ASCRIPT_PLAYER_STATE) puts "=> player #{player_state}" end