Class: Diff::LCS::Ldiff::InputInfo
- Inherits:
-
Struct
- Object
- Struct
- Diff::LCS::Ldiff::InputInfo
- Defined in:
- lib/diff/lcs/ldiff.rb
Overview
standard:enable Layout/HeredocIndentation
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#stat ⇒ Object
Returns the value of attribute stat.
Instance Method Summary collapse
-
#initialize(filename) ⇒ InputInfo
constructor
A new instance of InputInfo.
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
#data ⇒ Object
Returns the value of attribute data
21 22 23 |
# File 'lib/diff/lcs/ldiff.rb', line 21 def data @data end |
#filename ⇒ Object
Returns the value of attribute filename
21 22 23 |
# File 'lib/diff/lcs/ldiff.rb', line 21 def filename @filename end |
#stat ⇒ Object
Returns the value of attribute stat
21 22 23 |
# File 'lib/diff/lcs/ldiff.rb', line 21 def stat @stat end |