Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix documentation inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
arnau committed Dec 12, 2015
1 parent cadec73 commit 32f37fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/iso8601/time_interval.rb
Expand Up @@ -164,8 +164,8 @@ def pattern
alias_method :to_s, :pattern

##
# Calculate the size of the interval. If some time is a Duration, the
# size of the Interval is the number of seconds of the interval.
# Calculate the size of the interval. If any bound is a Duration, the
# size of the interval is the number of seconds of the interval.
#
# @return [Float] Size of the interval in seconds
def to_f
Expand Down Expand Up @@ -206,6 +206,7 @@ def include?(other)
(first.to_time <= other.to_time &&
last.to_time >= other.to_time)
end
alias_method :member?, :include?

##
# Returns true if the interval is a subset of the given interval.
Expand Down Expand Up @@ -242,7 +243,7 @@ def superset?(other)
##
# Check if two intervarls intersect.
#
# @param [ISO8601::Interval] other Another interval to check if they
# @param [ISO8601::TimeInterval] other Another interval to check if they
# intersect.
#
# @raise [ISO8601::Errors::TypeError] if the param is not a TimeInterval.
Expand All @@ -259,7 +260,7 @@ def intersect?(other)
##
# Return the intersection between two intervals.
#
# @param [ISO8601::Interval] other time interval
# @param [ISO8601::TimeInterval] other time interval
#
# @raise [ISO8601::Errors::TypeError] if the param is not a TimeInterval.
#
Expand All @@ -279,8 +280,7 @@ def intersection(other)
# Check if two intervarls have no element in common. This method is the
# opposite of `#intersect?`.
#
# @param [ISO8601::Interval] other Another interval to check if they
# intersect.
# @param [ISO8601::TimeInterval] other Time interval.
#
# @raise [ISO8601::Errors::TypeError] if the param is not a TimeInterval.
#
Expand Down
1 change: 0 additions & 1 deletion spec/iso8601/time_interval_spec.rb
Expand Up @@ -417,7 +417,6 @@
expect(big.intersection(small)).to eq(small)
expect(small.intersection(big)).to eq(small)
end

end

describe "#disjoint?" do
Expand Down

0 comments on commit 32f37fe

Please sign in to comment.