aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_converter.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-02 22:20:35 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-02 22:32:21 -0200
commit5c04ca87d86074e84e4ff51bcf08b113f464558b (patch)
treea998ed0594a9a63047661db3316863cfcbcb2ff9 /activesupport/lib/active_support/number_helper/number_converter.rb
parentd3b93e403b3d0c11607e037770ad91c062b2e897 (diff)
downloadrails-5c04ca87d86074e84e4ff51bcf08b113f464558b.tar.gz
rails-5c04ca87d86074e84e4ff51bcf08b113f464558b.tar.bz2
rails-5c04ca87d86074e84e4ff51bcf08b113f464558b.zip
Make execute priave API
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_converter.rb')
-rw-r--r--activesupport/lib/active_support/number_helper/number_converter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_converter.rb b/activesupport/lib/active_support/number_helper/number_converter.rb
index 39255d14a3..0afa08db84 100644
--- a/activesupport/lib/active_support/number_helper/number_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_converter.rb
@@ -115,6 +115,9 @@ module ActiveSupport
}
}
+ def self.convert(number, options)
+ new(number, options).execute
+ end
def initialize(number, opts = {})
@number = number