Class: Cucumber::Ast::Table
- Inherits:
-
Object
- Object
- Cucumber::Ast::Table
- Defined in:
- lib/ruote/cukes.rb
Overview
re-opening the cucumber table class to add a fancy to_hash method
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/ruote/cukes.rb', line 69 def to_hash self.raw.inject({}) do |h, (k, v)| h[k] = (Rufus::Json.decode(v) rescue v) h end end |