Sha256: 31bf94a58557aefe28e19847ca63fadcc7a1f1ee22c14606b2fc3161ac8d7391

Contents?: true

Size: 84 Bytes

Versions: 5

Compression:

Stored size: 84 Bytes

Contents

class Object
  def acts_like?(duck)
    respond_to? :"acts_like_#{duck}?"
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
happy_support-1.0.0 lib/happy_support/core_ext/object/acts_like.rb
time_crisis-0.3.5 lib/time_crisis/support/ext/object/acts_like.rb
time_crisis-0.3.2 lib/time_crisis/support/ext/object/acts_like.rb
time_crisis-0.3.1 lib/time_crisis/support/ext/object/acts_like.rb
time_crisis-0.3.0 lib/time_crisis/support/ext/object/acts_like.rb