Class: Puppet::Pops::Lookup::EnvironmentContext::FileData
- Defined in:
- lib/puppet/pops/lookup/context.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(path, inode, mtime, size, data) ⇒ FileData
constructor
A new instance of FileData.
- #valid?(stat) ⇒ Boolean
Constructor Details
#initialize(path, inode, mtime, size, data) ⇒ FileData
Returns a new instance of FileData.
11 12 13 14 15 16 17 |
# File 'lib/puppet/pops/lookup/context.rb', line 11 def initialize(path, inode, mtime, size, data) @path = path @inode = inode @mtime = mtime @size = size @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/puppet/pops/lookup/context.rb', line 9 def data @data end |
Instance Method Details
#valid?(stat) ⇒ Boolean
19 20 21 |
# File 'lib/puppet/pops/lookup/context.rb', line 19 def valid?(stat) stat.ino == @inode && stat.mtime == @mtime && stat.size == @size end |