super_struct:扩展结构构造函数

时间:2021-06-26 11:55:40
【文件属性】:
文件名称:super_struct:扩展结构构造函数
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-26 11:55:40
Ruby 超结构 对Struct简单扩展,使其与Hash更兼容,而没有OpenStruct的性能损失 安装 将此行添加到应用程序的 Gemfile 中: gem 'super_struct' 然后执行: $ bundle 或者自己安装: $ gem install super_struct 用法 require 'super_struct' attributes = { name : 'John Doe' } class Customer < SuperStruct xss=removed xss=removed> #<st
【文件预览】:
super_struct-master
----.gitignore(124B)
----Guardfile(267B)
----.rspec(69B)
----.travis.yml(60B)
----.ruby-version(6B)
----LICENSE.txt(1KB)
----spec()
--------super_struct_spec.rb(2KB)
--------spec_helper.rb(96B)
----super_struct.gemspec(1KB)
----README.md(1KB)
----lib()
--------super_struct()
--------super_struct.rb(1KB)
----Gemfile(175B)
----Rakefile(2KB)

网友评论