Sha256: 626cd0634243cc90ce3e14761d01ff9cb9391383ca5dfc9c22aa049e43e4790b

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

V_SPACING_OK = {}
V_SPACING_1 = {}

#-------------------------------------------------------------------------------
# Class length
#-------------------------------------------------------------------------------
V_SPACING_OK[:class_five_code_lines] =
  %Q{class Party
  include Clowns

  def barrel_roll
  end
end}

V_SPACING_OK[:embedded_class_five_code_lines] =
  %Q{class Party
  class Pizza
    include Cheese
  end
end}

V_SPACING_1[:class_too_long] =
  %Q{class Party
  include Clowns
  include Pizza

  def barrel_roll
    puts "DOABARRELROLL!"
  end
end}

V_SPACING_1[:parent_class_too_long] =
  %Q{class Party

  class Pizza
    include Cheese
    include Yumminess
  end
end}

#-------------------------------------------------------------------------------
# Method length
#-------------------------------------------------------------------------------
V_SPACING_OK[:method_3_code_lines] =
  %Q{def thing


  puts 'hi'
end}

V_SPACING_OK[:embedded_method_3_code_lines] =
  %Q{def outter_thing
  def thing; puts 'hi'; end


end}

V_SPACING_1[:method_too_long] =
  %Q{def thing
  puts
  puts
end}

V_SPACING_1[:parent_method_too_long] =
  %Q{def thing
  puts
  def inner_thing; print '1'; end
  puts
end}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tailor-1.0.0.alpha2 features/support/file_cases/vertical_spacing_cases.rb
tailor-1.0.0.alpha features/support/file_cases/vertical_spacing_cases.rb