Class: Toggle::Compiler
- Inherits:
-
Object
- Object
- Toggle::Compiler
- Defined in:
- lib/toggle/compiler.rb
Defined Under Namespace
Classes: FileNotFound
Instance Method Summary collapse
-
#initialize(file, parsers = nil) ⇒ Compiler
constructor
A new instance of Compiler.
- #parsed_content ⇒ Object
Constructor Details
#initialize(file, parsers = nil) ⇒ Compiler
Returns a new instance of Compiler.
5 6 7 8 |
# File 'lib/toggle/compiler.rb', line 5 def initialize file, parsers = nil @file = file @parsers = parsers ? [*parsers] : file_extensions end |