Sha256: 32543227500e95d907a55a771c89798227c6469e482aee084e14a9bca5ed0a66
Contents?: true
Size: 492 Bytes
Versions: 7
Compression:
Stored size: 492 Bytes
Contents
# Sample ruby class that is used in our ruby applications # We will MOle this class and capture the essence of the interactions module RubyApp class Fred # Pure feature def my_feature( arg1, arg2, arg3, &block ) "#{arg1}--#{arg2}--#{arg3}" end # Slow feature def my_slow_feature( arg1 ) sleep( 2 ) "slow returned #{arg1}" end # Hose feature def my_hosed_feature( arg1 ) raise "This will hose your app" end end end
Version data entries
7 entries across 7 versions & 2 rubygems