Class: Puppet::Pops::Lookup::EnvironmentContext::FileData Private
- Defined in:
- lib/puppet/pops/lookup/context.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #data ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(path, inode, mtime, size, data) ⇒ FileData
constructor
private
A new instance of FileData.
- #valid?(stat) ⇒ Boolean private
Constructor Details
#initialize(path, inode, mtime, size, data) ⇒ FileData
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FileData.
13 14 15 16 17 18 19 |
# File 'lib/puppet/pops/lookup/context.rb', line 13 def initialize(path, inode, mtime, size, data) @path = path @inode = inode @mtime = mtime @size = size @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/puppet/pops/lookup/context.rb', line 11 def data @data end |
Instance Method Details
#valid?(stat) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/puppet/pops/lookup/context.rb', line 21 def valid?(stat) stat.ino == @inode && stat.mtime == @mtime && stat.size == @size end |