module NForm::Hashable
Public Instance Methods
hash_of(*keys)
click to toggle source
A convenience method for making a hash with the given methods on self as the keys and return for the given methods as the values
# File lib/nform/core_ext.rb, line 8 def hash_of(*keys) keys.each.with_object({}){|k,h| h[k] = send(k) } end