Skip to content

Commit

Permalink
Added to_past_tense
Browse files Browse the repository at this point in the history
  • Loading branch information
parolkar committed Apr 1, 2009
1 parent 5f598cd commit ed0d52e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README
Expand Up @@ -9,14 +9,14 @@ Example
=======
With this plugin installed in your rails app, you will be able to perform operations on strings this way...

"create".past_tensed => "created"
"buy".past_tensed => "baught"
"fight".past_tensed => "faught"
"market".past_tensed => "marketed"
"animate".past_tensed => "animated"
"fluctuate".past_tensed => "fluctuated"
"tag".past_tensed => "tagged"
"feel".past_tensed => "felt"
"create".to_past_tense => "created"
"buy".to_past_tense => "baught"
"fight".to_past_tense => "faught"
"market".to_past_tense => "marketed"
"animate".to_past_tense => "animated"
"fluctuate".to_past_tense => "fluctuated"
"tag".to_past_tense => "tagged"
"feel".to_past_tense => "felt"


Installation
Expand Down
3 changes: 3 additions & 0 deletions lib/string_ext.rb
Expand Up @@ -12,6 +12,9 @@ module Inflections
def past_tensed
Inflector.past_tensed(self)
end
def to_past_tense
past_tensed
end
end
end
end
Expand Down

0 comments on commit ed0d52e

Please sign in to comment.