Skip to content

Instantly share code, notes, and snippets.

@hernad
Created December 2, 2008 17:56
Show Gist options
  • Save hernad/31198 to your computer and use it in GitHub Desktop.
Save hernad/31198 to your computer and use it in GitHub Desktop.
class Person
attr_accessor :country, :country_options
def initialize
self.country_options=["", "Canada", "US", "Mexico"]
self.country = "Canada"
end
end
class HelloList
include Glimmer
def launch
shell {
list {
selection bind(Person.new, :country)
}
}.open
end
end
HelloList.new.launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment