lib/win/library.rb in win-0.1.0 vs lib/win/library.rb in win-0.1.2
- old
+ new
@@ -362,21 +362,19 @@
end
##
# Generates possible effective names for function in Win32 dll (name+A/W),
# Rubyesque name and aliases for method(s) defined based on function name,
- # sets boolean flag for test functions (Is...)
#
def generate_names(name, options={})
name = name.to_s
effective_names = [name]
effective_names += ["#{name}A", "#{name}W"] unless name =~ /[WA]$/
aliases = ([options[:alias]] + [options[:aliases]]).flatten.compact
method_name = options[:rename] || name.snake_case
case method_name
when /^is_/
aliases << method_name.sub(/^is_/, '') + '?'
- options[:boolean] = true
when /^set_/
aliases << method_name.sub(/^set_/, '')+ '='
when /^get_/
aliases << method_name.sub(/^get_/, '')
end
\ No newline at end of file