Method: NibblerMethods::InstanceMethods#initialize
- Defined in:
- lib/nibbler.rb
#initialize(doc) ⇒ Object
Initialize the parser with a document
64 65 66 67 68 |
# File 'lib/nibbler.rb', line 64 def initialize(doc) @doc = doc # initialize plural properties self.class.rules.each { |name, (s, k, plural)| send("#{name}=", []) if plural } end |