Sha256: f3c590552c0318c2aa77bac757734248635cc7b8dfa18fd9a71030ab19de2fb4
Contents?: true
Size: 502 Bytes
Versions: 16
Compression:
Stored size: 502 Bytes
Contents
Given /^the indentation rules are like Ruby's$/ do Redcar::AutoIndenter.test_rules = Redcar::AutoIndenter::Rules.new(/def/, /end/) end Given /^the indentation rules are like Java's$/ do Redcar::AutoIndenter.test_rules = Redcar::AutoIndenter::Rules.new( /^.*\{[^}"']*$|^\s*(public|private|protected):\s*$/, /^(.*\*\/)?\s*\}([^}{"']*\{)?[;\s]*(\/\/.*|\/\*.*\*\/\s*)?$|^\s*(public|private|protected):\s*$/ ) end When /^I auto-indent/ do Redcar::AutoIndenter::IndentCommand.new.run end
Version data entries
16 entries across 16 versions & 1 rubygems