parser_girl 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/parser_girl.rb +8 -0
  2. metadata +2 -2
@@ -41,6 +41,14 @@ class ParserGirl
41
41
  break
42
42
  end
43
43
  end
44
+ # pop rest
45
+ while @stack.any?
46
+ hash = @stack.pop
47
+ if block_given?
48
+ @result.push(yield("", hash[:attrs]))
49
+ end
50
+ end
51
+
44
52
  @result
45
53
  end
46
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser_girl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: