Module: Assert
- Included in:
- FalseClass, TrueClass
- Defined in:
- lib/string__.rb
Overview
76 of 16 source files
Instance Method Summary collapse
Instance Method Details
#assert(*args) ⇒ Object
19 20 21 22 23 |
# File 'lib/string__.rb', line 19 def assert(*args) raise if args.empty? && !self args.each { |i| raise i unless i; } end |