Sha256: 26e693e2eedb2210c46330bf20702fa61ff498baf927ddd1f04c61dd5284ad99

Contents?: true

Size: 982 Bytes

Versions: 2

Compression:

Stored size: 982 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.times do |number|
        begin
        rescue
        ensure
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tailor-1.4.1 features/support/legacy/long_file_with_indentation.rb
tailor-1.4.0 features/support/legacy/long_file_with_indentation.rb