Skip to content

Instantly share code, notes, and snippets.

a = null
a?
=> false
b = 42
b?
=> true
bundle exec guard
guard 'pow' do
watch('.powrc')
watch('.powenv')
watch('.rvmrc')
watch('Gemfile')
watch('Gemfile.lock')
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
guard init pow
group :development do
gem 'guard-pow'
end
touch tmp/restart.txt
require File.dirname(__FILE__) + '/config/environment'
run ActionController::Dispatcher.new
ln -s /mon/app ~/.pow/
curl get.pow.cx | sh
p garfield.send :weight
# 10
Cat.send :public, :weight
p garfield.weight
# 10