File: introduce1.rb.testApplyIntroduceVariable.fixed

package info (click to toggle)
netbeans-ide 6.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 741,536 kB
  • ctags: 613,961
  • sloc: java: 3,969,489; xml: 336,553; jsp: 11,861; ruby: 10,091; cpp: 4,127; sh: 3,417; ansic: 1,734; sql: 1,306; haskell: 1,019; makefile: 487; perl: 403; objc: 288; php: 120
file content (28 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class FooBar
  GOOD_CONSTANT = 50
  BadConstant = 50
   
  # My method
  # Has documentation
  private
  def good_method
    good_symbol = 50
    x = 50
    myvar = 50+30
    callmethod(callmethod2(myvar))
    callmethod3(callmethod4(x+30))
    puts good_symbol
    a = 25
    b = "string"
    c = /regexp/
    d = a+b-c
  end

  # Another method
  def badMethod
    badSymbol = 50
    puts badSymbol
  end
   
end