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
7 8 9 10 11 12 13 14 15 |
# File 'lib/dicebag/transform.rb', line 7 def self.() return if .is_a? Hash opts = {} .each { |val| opts.update val } if .respond_to?(:each) opts end |