Class: BocaGolf::Scorer
- Inherits:
-
Object
- Object
- BocaGolf::Scorer
- Defined in:
- lib/boca_golf/scorer.rb
Instance Method Summary collapse
Instance Method Details
#score(gist) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/boca_golf/scorer.rb', line 3 def score(gist) if RUBY_VERSION >= "1.9" gist.code.length else gist.code.unpack("U*").length end end |