class Dhallish::Union
Attributes
init_label[RW]
init_val[RW]
type[RW]
Public Class Methods
new(init_label, init_val, type)
click to toggle source
# File lib/types.rb, line 343 def initialize(init_label, init_val, type) @init_label = init_label @init_val = init_val @type = type end
Public Instance Methods
select(label)
click to toggle source
# File lib/types.rb, line 349 def select(label) if label == @init_label @init_val else nil end end