Class: Diff::LCS::Ldiff::InputInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/diff/lcs/ldiff.rb

Overview

standard:enable Layout/HeredocIndentation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ InputInfo

Returns a new instance of InputInfo.



22
23
24
# File 'lib/diff/lcs/ldiff.rb', line 22

def initialize(filename)
  super(filename, ::File.read(filename), ::File.stat(filename))
end

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



21
22
23
# File 'lib/diff/lcs/ldiff.rb', line 21

def data
  @data
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



21
22
23
# File 'lib/diff/lcs/ldiff.rb', line 21

def filename
  @filename
end

#statObject

Returns the value of attribute stat

Returns:

  • (Object)

    the current value of stat



21
22
23
# File 'lib/diff/lcs/ldiff.rb', line 21

def stat
  @stat
end