Add Type to Ruby!
This project is maintained by S-H-GAMELINKS
Tatara is simply Type support gem. Developed by C++/Rice(create Ruby Extension for C++).
Provide a simply type & container for your Ruby Code!
Using Your Project, add tatara
in your Gemfile.
gem 'tatara'
And run bundle
command.
bundle
So, you can use this code!
require 'tatara'
@int_container = Tatara::IntVector.new
(1..10).each{|i| @int_container << i}
# Insert 1..10 to @int_container
@int_container.map{|i|
puts i
# 1..10 value is shown
}
Run gem install tatara
.
gem install tatara
So, you can use this code!
require 'tatara'
@int_container = Tatara::IntVector.new
(1..10).each{|i| @int_container << i}
# Insert 1..10 to @int_container
@int_container.map{|i|
puts i
# 1..10 value is shown
}