Class: Oats::OatsDataLoadHistoryItem

Inherits:
Object
  • Object
show all
Defined in:
lib/oats/oats_data.rb

Overview

Keeps history of YAML files loaded into the global $oats. if omit is true add the yaml name into the result directory hierarchy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, omit = false) ⇒ OatsDataLoadHistoryItem

Returns a new instance of OatsDataLoadHistoryItem.



8
9
10
11
12
# File 'lib/oats/oats_data.rb', line 8

def initialize(file, omit = false)
  @file = file
  @omit = omit
  @in_result_dir = true
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



7
8
9
# File 'lib/oats/oats_data.rb', line 7

def file
  @file
end

#in_result_dirObject

Returns the value of attribute in_result_dir.



7
8
9
# File 'lib/oats/oats_data.rb', line 7

def in_result_dir
  @in_result_dir
end

#omitObject

Returns the value of attribute omit.



7
8
9
# File 'lib/oats/oats_data.rb', line 7

def omit
  @omit
end