This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with useful tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl https://raw.github.com/gist/2266840/9a55fa74b72089ac8654a48e5988652cfc9f664c/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tax | |
attr_accessor :threshold | |
def initialize(threshold) | |
# There's probably a better way of doing default values | |
@threshold = threshold.to_i || 7592 | |
end | |
def parseTaxCode(taxCode) | |
# Try this bit in ruby 1.9 |