I hereby claim:
- I am dixpac on github.
- I am dixpac (https://keybase.io/dixpac) on keybase.
- I have a public key ASDaB2t7_mzy5uyIxicrC5izmr_AopmxxHv6GfKHd0OmlQo
To claim this, I am signing this object:
| // helpers/current_helpers.js | |
| // On-demand JavaScript objects from "current" HTML <meta> elements. Example: | |
| // | |
| // <meta name="current-account-id" content="123"> | |
| // <meta name="current-account-subdomain" content="Wizard Lab"> | |
| // | |
| // >> current.account | |
| // => { id: "123", subdomain: "Wizard Lab" } | |
| // |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # default implementation via attr_reader | |
| def weight | |
| @weight | |
| end |
| class Person | |
| attr_reader :weight, :height | |
| def initialize(weight, height) | |
| weight = weight | |
| height = height | |
| end | |
| def bmi | |
| (weight / (height * height)) |
| class Person | |
| def initialize(weight, height) | |
| @weight = weight | |
| @height = height | |
| end | |
| def bmi | |
| (@weight / (@height * @height)) | |
| end | |
| end |
| PATH | |
| remote: . | |
| specs: | |
| trix (0.9.5) | |
| rails | |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| actionmailer (4.2.6) |
| # instead of save_and_open_page you can just type | |
| # page! | |
| module CapbaraExt | |
| def page! | |
| save_and_open_page | |
| end | |
| end | |
| RSpec.configure do |config| | |
| config.include CapbaraExt |