class Struct

Public Class Methods

from_array(a) click to toggle source
# File lib/struct.rb, line 11
def self.from_array(a)
  a.collect do |b|
  end
end
from_hash(h) click to toggle source
# File lib/struct.rb, line 3
def self.from_hash(h)
  o = new
  h.each do |m, v|
    o[m.to_sym] = v
  end
  o
end