Sha256: 0420a8e690a0aff2e6ecfd753074b95abdc3669346bbda489e1ac197a8c0af96
Contents?: true
Size: 243 Bytes
Versions: 1
Compression:
Stored size: 243 Bytes
Contents
require_relative '../lib/exec_if' puts 'hello'.concat(' world!'). exec_if(:ascii_only?) { upcase }. exec_if("end_with?('?')") { delete_suffix('?') }. exec_if(Proc.new {|str| str.length >= 5 }) { delete_prefix('HEL') }. == 'LO WORLD!'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exec_if-0.3.0 | examples/usage.rb |