Sha256: 2046e6ee360468d1cee49670ab896872a0eceee297d3108c834252f0669f78ca
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 Bytes
Contents
module Telegraph module Types class Node include Virtus.model attribute :tag, String attribute :attr, String attribute :children, Array[Node] attribute :text, String def initialize(node) if node.is_a?(String) @text = node else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telegraph_api-0.1.1 | lib/telegraph/types/node.rb |
telegraph_api-0.1.0 | lib/telegraph/types/node.rb |