Sha256: a5bd6b227a786a6618f44726671c116d3b7c1dd1b306197494573b1e7b7bbd1a
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
# encoding: utf-8 # Object class Object # If self match any one of args, return true. # # "hoge".any_of? %w{hoge hige} # => true # "hige".any_of? %w{hoge hige} # => true # "hege".any_of? %w{hoge hige} # => false def any_of?(*args) args.include?(self) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tbpgr_utils-0.0.151 | lib/open_classes/object/any_of.rb |