Sha256: 30d2fda9e778d8cc5ec202c7ed7c132bcc2cf483f40a112f1369171a20c1db49
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module Vedeu class Menu attr_accessor :label, :value def initialize(attributes = {}) @attributes = attributes || {} end def label attributes[:label] || defaults[:label] end def value attributes[:value] || defaults[:value] end private def defaults { label: '', value: '' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | lib/vedeu/output/menu.rb |