Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiK committed Apr 18, 2014
1 parent a8e4d1d commit b00222b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/Humanizer/Bytes/ByteSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

using System;

// ReSharper disable CSharpWarnings::CS1591
#pragma warning disable 1591
namespace Humanizer.Bytes
{
/// <summary>
Expand Down Expand Up @@ -386,5 +384,3 @@ public static ByteSize Parse(string s)
}
}
}
#pragma warning restore 1591
// ReSharper restore CSharpWarnings::CS1591
3 changes: 3 additions & 0 deletions src/Humanizer/Configuration/Configurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public static IFormatter Formatter
}
}

/// <summary>
/// The strategy to be used for DateTime.Humanize
/// </summary>
public static IDateTimeHumanizeStrategy DateTimeHumanizeStrategy
{
get { return _dateTimeHumanizeStrategy; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
/// A strategy for converting a 'distance of time' into words.
/// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeHumanizeStrategy
/// </summary>
public interface IDateTimeHumanizeStrategy
{
/// <summary>
/// Calculates the distance of time in words between two provided dates.
/// Calculates the distance of time in words between two provided dates used for DateTime.Humanize
/// </summary>
string Humanize(DateTime input, DateTime comparisonBase);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Humanizer/Localisation/TimeUnit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Humanizer.Localisation
{
#pragma warning disable 1591
/// <summary>
/// Units of time.
/// </summary>
Expand All @@ -15,5 +14,4 @@ public enum TimeUnit
Month,
Year
}
#pragma warning restore 1591
}

0 comments on commit b00222b

Please sign in to comment.