Class: Fudge::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/fudge/parser.rb

Overview

Handles parsing of fudge file and building the necessary description

Instance Method Summary collapse

Instance Method Details

#parse(file) ⇒ Object

Parse a FudgeFile at a given location



6
7
8
9
10
# File 'lib/fudge/parser.rb', line 6

def parse(file)
  File.open(file) do |f|
    Description.new(f)
  end
end