Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

preisanalytics/mruby-ostruct

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-ostruct

OpenStruct binding in mruby.

o = OpenStruct.new
o.foo = 1
o.bar = "baz"
p o.foo #=> 1
p o.to_h #=> {:foo => 1, :bar => "baz"}

Installation

use github repository

Write in /mruby/build_config.rb

MRuby::Build.new do |conf|
  conf.gem :github => 'ksss/mruby-ostruct', :branch => 'master'
end

or use mgem

mgem add mruby-ostruct

build

and exec in your /mruby.

rake clean
rake
rake test

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%