Sha256: 252d73d807bfe0466f86415d94fee868a6a976b6a10c329f6fb2fdbdae7cb178
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
module FeatureFlagMonitor::Refinements::Attemptable refine Object do def attempt(message, *args, &block) (respond_to?(message) && public_send(message, *args, &block)) || self end def blank? nil? || (respond_to?(:empty?) && empty?) end def present? !blank? end def property_present?(message) respond_to?(message) && public_send(message).present? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature-flag-monitor-0.5.4 | lib/feature_flag_monitor/refinements/attemptable.rb |