https://github.com/siman-man/yen
Integer to japanese yen in ruby
https://github.com/siman-man/yen
gem ruby
Last synced: 9 months ago
JSON representation
Integer to japanese yen in ruby
- Host: GitHub
- URL: https://github.com/siman-man/yen
- Owner: siman-man
- License: mit
- Created: 2013-09-21T18:10:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-29T15:29:10.000Z (almost 11 years ago)
- Last Synced: 2024-11-18T03:04:58.491Z (over 1 year ago)
- Topics: gem, ruby
- Language: Ruby
- Size: 133 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Yen
数値を日本語表記に変換するgemです。Integerのみ使用できます。対応している桁数は倶胝までです。
## Installation
install it yourself as:
$ gem install yen
## Usage
```ruby
require 'yen'
10000.to_j #=> 1万
10000.to_j(:all) #=> 一万
370060178930.to_j #=> 3700億6017万8930
370060178930.to_j(:all) #=> 三千七百億六千十七万八千九百三十
10000.to_yen #=> 1万円
10000.to_yen(:all) #=> 一万円
```
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request