applied_css 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AppliedCss
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/applied_css.rb CHANGED
@@ -58,6 +58,18 @@ class AppliedCSS
58
58
  @style_hash
59
59
  end
60
60
 
61
+ def to_hash
62
+ hash = {}
63
+ @parser.each_selector do |selector, declarations, specificity|
64
+ hash[selector] = declarations
65
+ end
66
+ hash
67
+ end
68
+
69
+ def parser
70
+ @parser
71
+ end
72
+
61
73
  private
62
74
  def populate_style_hash
63
75
  @style_hash = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applied_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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-07-18 00:00:00.000000000 Z
12
+ date: 2013-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec