mruby capacity interface
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.travis.yml
.travis_build_config.rb
LICENSE
README.md
Rakefile
mrbgem.rake
mruby-capacity.gem

README.md

mruby-capacity Build Status

Build Status

Provides interface method of capacity of String class and array class.

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'pyama86/mruby-capacity'
end

example

s = "example"
s.capacity
=> 23
s.capacity = 100
=> 100

License

under the MIT License:

  • see LICENSE file