class Mexico::FileSystem::Head

Add class documentation here

Public Class Methods

new(args={}) click to toggle source
# File lib/mexico/file_system/head.rb, line 33
def initialize(args={})
  @sections = []
  ::Mexico::FileSystem::Section::SECTION_KEYS.each do |key|
    @sections << ::Mexico::FileSystem::Section.new(key)
  end
end

Public Instance Methods

[](key) click to toggle source
# File lib/mexico/file_system/head.rb, line 40
def [](key)
  sections.find{|x| x.key == key }
end
section(key) click to toggle source
# File lib/mexico/file_system/head.rb, line 44
def section(key)
  sections.find{|x| x.key == key }
end