Class: DiceBag::Transform
- Inherits:
-
Parslet::Transform
- Object
- Parslet::Transform
- DiceBag::Transform
- Defined in:
- lib/dicebag/transform.rb
Overview
This is the Transform subclass that takes the parsed tree and transforms it into its (almost) final form. (It gets a normalization pass later.)
Class Method Summary collapse
Class Method Details
.hashify_options(options) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/dicebag/transform.rb', line 9 def self.() opts = {} .each { |opt, val| opts[opt] = val } if .is_a?(Array) opts end |