Module: MojiBake::VersionSupport
- Included in:
- JSONSupport, Mapper
- Defined in:
- lib/mojibake/base.rb
Instance Method Summary collapse
Instance Method Details
#jruby_version_a ⇒ Object
25 26 27 |
# File 'lib/mojibake/base.rb', line 25 def jruby_version_a ver_to_a( JRUBY_VERSION ) if defined?( JRUBY_VERSION ) end |
#ruby_version_a ⇒ Object
21 22 23 |
# File 'lib/mojibake/base.rb', line 21 def ruby_version_a ver_to_a( RUBY_VERSION ) end |
#ver_to_a(ver) ⇒ Object
29 30 31 |
# File 'lib/mojibake/base.rb', line 29 def ver_to_a( ver ) ver.split( '.' ).map { |d| d.to_i } end |