Class: Defgen::DefaultfileParser

Inherits:
Object
  • Object
show all
Defined in:
lib/defgen/defaultfile_parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaultfileParser

Returns a new instance of DefaultfileParser.



7
8
9
# File 'lib/defgen/defaultfile_parser.rb', line 7

def initialize
  @properties = []
end

Class Method Details

.parse(string) ⇒ Object



3
4
5
# File 'lib/defgen/defaultfile_parser.rb', line 3

def self.parse string
  new.parse string
end

Instance Method Details

#parse(string) ⇒ Object



37
38
39
40
# File 'lib/defgen/defaultfile_parser.rb', line 37

def parse string
  instance_eval string
  @properties
end