Sha256: 3f1e42d0ef24c54efa5f64884f7e514a2dd252741a47852b325e2a79e4b93417
Contents?: true
Size: 314 Bytes
Versions: 5
Compression:
Stored size: 314 Bytes
Contents
require 'rubygems' require 'hpricot' module Gattica class Segment include Convertible attr_reader :id, :name, :definition def initialize(xml) @id = xml.attributes['id'] @name = xml.attributes['name'] @definition = xml.at("dxp:definition").inner_html end end end
Version data entries
5 entries across 5 versions & 4 rubygems