Module: Glimmer::LibUI::ControlProxy::EnableableColumn

Included in:
Column::ButtonColumnProxy
Defined in:
lib/glimmer/libui/control_proxy/enableable_column.rb

Instance Method Summary collapse

Instance Method Details

#enabled(value = nil) ⇒ Object Also known as: enabled=, set_enabled, enabled?



26
27
28
29
30
31
32
33
# File 'lib/glimmer/libui/control_proxy/enableable_column.rb', line 26

def enabled(value = nil)
  if value.nil?
    @enabled = true if @enabled.nil?
    @enabled
  else
    @enabled = !!value
  end
end