Sha256: f4029e190402afbd7ab4bd920d5562e304f4e6666b5a090c434da71f784445a7

Contents?: true

Size: 988 Bytes

Versions: 14

Compression:

Stored size: 988 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

14 entries across 14 versions & 1 rubygems

Version Path
tailor-1.3.1 features/support/legacy/long_file_with_indentation.rb
tailor-1.3.0 features/support/legacy/long_file_with_indentation.rb
tailor-1.2.1 features/support/legacy/long_file_with_indentation.rb
tailor-1.2.0 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.5 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.4 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.3 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.2 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.1 features/support/legacy/long_file_with_indentation.rb
tailor-1.1.0 features/support/legacy/long_file_with_indentation.rb
tailor-1.0.1 features/support/legacy/long_file_with_indentation.rb
tailor-1.0.0 features/support/legacy/long_file_with_indentation.rb
tailor-1.0.0.alpha2 features/support/legacy/long_file_with_indentation.rb
tailor-1.0.0.alpha features/support/legacy/long_file_with_indentation.rb