Sha256: 28ab8de5555cabc9f699a7587685ef23ae75907a791c2ab3de15a5bba16f544e
Contents?: true
Size: 766 Bytes
Versions: 16
Compression:
Stored size: 766 Bytes
Contents
# any object's methods complete :object=>"Object" # method arguments complete :all_methods=>true complete :all_operator_methods=>true # classes and constants complete(:name=>:constants, :anywhere=>'([A-Z][^. \(]*)::([^: .]*)') {|e| receiver = e.matched[2] candidates = eval("#{receiver}.constants | #{receiver}.methods") || [] normal_search(e.matched[3], candidates).map {|e| "#{receiver}::#{e}" } } # absolute constants complete(:prefix=>'::', :anywhere=>'[A-Z][^:\.\(]*') {|e| Object.constants } complete(:anywhere=>':[^:\s.]*') {|e| Symbol.all_symbols.map {|f| ":#{f}" } rescue [] } complete(:anywhere=>'\$[^\s.]*') {|e| global_variables } complete(:name=>:quoted_files, :on=>/[\s(]["']([^'"]*)$/, :search=>false, :place=>:last) {|e| files(e.matched[1]) }
Version data entries
16 entries across 16 versions & 1 rubygems