Class: Gtk::ResponseType

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/response-type.rb

Class Method Summary collapse

Class Method Details

.resolve(id) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/gtk3/response-type.rb', line 20

def resolve(id)
  case id
  when Symbol
    new(id)
  else
    id
  end
end