Module: Petli

Defined in:
lib/petli.rb,
lib/petli/pet.rb,
lib/petli/watch.rb,
lib/petli/stages.rb,
lib/petli/version.rb,
lib/petli/pet/food.rb,
lib/petli/pet/death.rb,
lib/petli/pet/happy.rb,
lib/petli/stages/base.rb,
lib/petli/stages/dice.rb,
lib/petli/stages/feed.rb,
lib/petli/stages/main.rb,
lib/petli/stages/play.rb,
lib/petli/stages/guess.rb,
lib/petli/pet/animation.rb

Defined Under Namespace

Modules: Stages, Watch Classes: Pet

Constant Summary collapse

DAYS_DIV =
86400
HOURS_DIV =
3600
MINS_DIV =
60
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.data_path(*filepaths) ⇒ Object



11
12
13
# File 'lib/petli.rb', line 11

def self.data_path(*filepaths)
  File.join(root, 'data', *filepaths)
end

.rootObject



7
8
9
# File 'lib/petli.rb', line 7

def self.root
  File.expand_path(File.join(__dir__, '..'))
end