Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Spell arithmetic correctly #1

Merged
merged 1 commit into from

2 participants

@czarneckid

Funny because you spell it correctly in the README

@hypomodern
Owner

Good god, Wilson :). Thanks.

@hypomodern hypomodern merged commit 73c7d30 into hypomodern:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 15, 2012
  1. @czarneckid

    Add the arithmetic.rb file

    czarneckid authored
This page is out of date. Refresh to see the latest.
View
4 lib/duration.rb
@@ -1,11 +1,11 @@
require "duration/version"
-require "duration/arithmatic"
+require "duration/arithmetic"
class Duration
attr_accessor :raw
include Comparable
- include Arithmatic
+ include Arithmetic
def initialize input
self.raw = input.to_s
View
2  lib/duration/arithmatic.rb → lib/duration/arithmetic.rb
@@ -1,5 +1,5 @@
class Duration
- module Arithmatic
+ module Arithmetic
def + other_duration
raise StandardError.new("Cannot add #{other_duration.class} to #{self}") unless other_duration.respond_to?(:to_i)
other_duration = other_duration.to_duration if other_duration.respond_to?(:to_duration)
Something went wrong with that request. Please try again.