An open API service indexing awesome lists of open source software.

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

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