Module: Cheri::Swing::Constants
- Defined in:
- lib/cheri/builder/swing/constants.rb
Constant Summary collapse
Class Method Summary collapse
-
.add(y, t, d) ⇒ Object
:nodoc:.
-
.get(y) ⇒ Object
(also: get_const_recs)
call-seq: Constants.get(symbol) -> ConstRec or nil Constants.get_const_recs(symbol) -> ConstRec or nil.
Class Method Details
.add(y, t, d) ⇒ Object
:nodoc:
32 33 34 35 36 37 38 39 40 |
# File 'lib/cheri/builder/swing/constants.rb', line 32 def add(y,t,d) #:nodoc: unless (@constants[y]) @constants[y] = ConstRec.new(t,d) return end r = @constants[y] r = r.next_rec while r.next_rec r.next_rec = ConstRec.new(t,d) end |
.get(y) ⇒ Object Also known as: get_const_recs
call-seq:
Constants.get(symbol) -> ConstRec or nil
Constants.get_const_recs(symbol) -> ConstRec or nil
46 47 48 |
# File 'lib/cheri/builder/swing/constants.rb', line 46 def get(y) @constants[y] end |