I hereby claim:
- I am jasonnoble on github.
- I am jasonnoble (https://keybase.io/jasonnoble) on keybase.
- I have a public key whose fingerprint is 79D9 33A8 A13D FC1C D05B 518E 1D63 EF2F 6062 9857
To claim this, I am signing this object:
class Dog | |
def speak | |
"Bark" | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
2.1.2 :001 > puts Device.ancestors | |
Device | |
#<Module:0x007f81dac8e390> | |
ActiveRecord::Base | |
ActiveRecord::Store | |
ActiveRecord::Serialization | |
ActiveModel::Serializers::Xml | |
ActiveModel::Serializers::JSON | |
ActiveModel::Serialization | |
ActiveRecord::Reflection |
class Cat | |
def speak | |
puts "Meow" | |
end | |
end |
puts "Ruby is cool!" | |
puts "Do you like Ruby too?" |
#!/usr/bin/env ruby | |
# Set a random value | |
picked_number = Kernel.rand(5) + 1 | |
# Set an initial guess | |
guess = 10 | |
# Set tries to 0 | |
tries = 0 |
require 'rspec' | |
require './lib/calculator' | |
describe Calculator do | |
it 'should be a Calculator' do | |
expect(subject).to be_a(Calculator) | |
end | |
describe '#addition(number1, number2)' do | |
it 'handles adding the two positive numbers' do |
Week 1 | |
2014-06-09 Monday | |
People Bingo | |
Toolbelt Intro | |
Pivotal Tracker Intro | |
2014-06-11 Wednesday | |
Warmup |
git clone git://github.com/joerodriguez/athletes-api-rmr-2014 | |
cd athletes-api-rmr-2014 | |
bundle | |
bundle exec rake db:migrate | |
bundle exec rake db:seed | |
rails s | |
# Open http://localhost:3000/api/docs | |
# In a new terminal tab | |
git clone git://github.com/brendanbenson/ng-athlete |
puts "Hello Ruby!" |