Sha256: d600717f0d6b691593ee65890a741ace7f52d4cba8b519023132426d896fcb5f
Contents?: true
Size: 986 Bytes
Versions: 4
Compression:
Stored size: 986 Bytes
Contents
# This file contains 1 method, no class, and is properly indented # in order to test a related scenario. module MyModule # This is a class! class AnotherThing # This is a method! def a_method case when 1 1..10.each { |num| puts num } when 2 else while false # Don't do anything # And stuff "meow".scan(/woem/) array = [1 ,2 ,3] other_thing = [ 4, 5, 6 ] end end an_array = Array.new a_hash = Hash.new # This is another comment an_array = [1, 2, 3] a_hash = { :one => 1, :two => 2 } if true # Let's return! return true elsif false return false else return nil end # Now how about a block... 1..10.each do |number| begin rescue ensure end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems