Module: SoFarSoGood

Defined in:
lib/so_far_so_good.rb,
lib/so_far_so_good/subpart.rb,
lib/so_far_so_good/version.rb,
lib/so_far_so_good/subchapter.rb

Defined Under Namespace

Classes: Subchapter, Subpart

Constant Summary collapse

HEADINGS =
["Clause", "Description"]
YEAR =
2013
TITLE =
48
VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.[](subpart) ⇒ Object



33
34
35
# File 'lib/so_far_so_good.rb', line 33

def [](subpart)
  subparts.find { |s| s.number == subpart }
end

.dfarsObject



21
22
23
# File 'lib/so_far_so_good.rb', line 21

def dfars
  @dfars ||= SoFarSoGood::Subchapter.new(:name => "DFARS", :volume => 3, :chapter => 2)
end

.farObject



17
18
19
# File 'lib/so_far_so_good.rb', line 17

def far
  @far ||= SoFarSoGood::Subchapter.new(:name => "FAR",   :volume => 2, :chapter => 1)
end

.subchaptersObject



25
26
27
# File 'lib/so_far_so_good.rb', line 25

def subchapters
  [far, dfars]
end

.subparts(options = {}) ⇒ Object



29
30
31
# File 'lib/so_far_so_good.rb', line 29

def subparts(options = {})
  subchapters.map { |d| d.subparts(options) }.flatten
end

.vendor_directoryObject



37
38
39
# File 'lib/so_far_so_good.rb', line 37

def vendor_directory
  File.expand_path "../vendor", File.dirname(__FILE__)
end