class Prb::Opts

Attributes

pomodoros[R]
port[R]
timer[R]

Public Class Methods

new(opts) click to toggle source
# File lib/prb/opts.rb, line 5
def initialize(opts)
  @pomodoros = opts[:pomodoros].to_i
  @timer = opts[:timer].to_i
  @daemonize = opts[:daemonize]
  @port = (opts[:port] || 3838).to_i
end

Public Instance Methods

daemonize?() click to toggle source
# File lib/prb/opts.rb, line 12
def daemonize?
  !!@daemonize
end