Class: AnalDiffist::InvertedDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/analdiffist/flog_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(inner) ⇒ InvertedDiff

Returns a new instance of InvertedDiff.



71
72
73
# File 'lib/analdiffist/flog_parser.rb', line 71

def initialize inner
  @inner = inner
end

Instance Method Details

#contextObject



75
76
77
# File 'lib/analdiffist/flog_parser.rb', line 75

def context
  @inner.context
end

#description(mode = :added) ⇒ Object



87
88
89
# File 'lib/analdiffist/flog_parser.rb', line 87

def description(mode = :added)
  @inner.description(mode)
end

#scoreObject



79
80
81
# File 'lib/analdiffist/flog_parser.rb', line 79

def score
  0-@inner.score
end

#typeObject



83
84
85
# File 'lib/analdiffist/flog_parser.rb', line 83

def type
  @inner.type
end