trueman:轻松断言字符串、整数的真值和假值。 (不要与#present?和#blank 混淆?)

时间:2021-07-06 17:36:13
【文件属性】:
文件名称:trueman:轻松断言字符串、整数的真值和假值。 (不要与#present?和#blank 混淆?)
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-06 17:36:13
Ruby 真男人 介绍:世界上最小的 RubyGem...(几乎) 断言一个值是否与这个小宝石的真或假的常见形式之一匹配。 安装 将此行添加到应用程序的 Gemfile 中: gem 'trueman' 然后执行: $ bundle 用法 Trueman 旨在断言某个值是否为真。 它不测试值presence ,只是它匹配以下项目之一: Trueman . truthy? 1 # => true Trueman . truthy? "1" # => true Trueman . truthy? "t" # => true Trueman . truthy? "T" # => true Trueman . truthy? true # => true Trueman . truthy? "true" # => true Trueman . truthy?
【文件预览】:
trueman-master
----LICENSE.txt(1KB)
----lib()
--------trueman()
--------trueman.rb(683B)
----Gemfile(92B)
----spec()
--------trueman_spec.rb(939B)
--------spec_helper.rb(77B)
----Rakefile(118B)
----.travis.yml(30B)
----trueman.gemspec(927B)
----README.md(2KB)
----.rspec(31B)
----.gitignore(118B)

网友评论