Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created October 30, 2010 16:51
Show Gist options
  • Save rippinrobr/655499 to your computer and use it in GitHub Desktop.
Save rippinrobr/655499 to your computer and use it in GitHub Desktop.
setting up the params for the setter and creating the method builder
# Define "set" accessor method for the property.
set_params = System::Collections::Generic::List.of(Type).new
set_params.add type
set_method = tb.DefineMethod("set_#{name}", get_set_attr, nil,
set_params.ToArray)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment