class DiceBag::Transform

This is the Transform subclass that takes the parsed tree and transforms it into its (almost) final form. (It gets a normalization pass later.)

Public Class Methods

hashify_options(options) click to toggle source
# File lib/dicebag/transform.rb, line 9
def self.hashify_options(options)
  opts = {}

  options.each { |val| opts.update val } if options.respond_to? :each

  opts
end