Sha256: 03bf0455ce36b8c12a310e831821995f9407c5bb1ffbe672fdb3535032ff70b4
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
module Expressir module Model class Type attr_accessor :id attr_accessor :type attr_accessor :where attr_accessor :parent attr_accessor :remarks def initialize(options = {}) @id = options[:id] @type = options[:type] @where = options[:where] end def children items = [] items.push(*@where) if @where items end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
expressir-0.2.3 | lib/expressir/model/type.rb |