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

Version Path
bond-0.5.1 lib/bond/completion.rb
bond-0.5.1-java lib/bond/completion.rb
bond-0.5.0 lib/bond/completion.rb
bond-0.5.0-java lib/bond/completion.rb
bond-0.4.3 lib/bond/completion.rb
bond-0.4.3-java lib/bond/completion.rb
bond-0.4.2 lib/bond/completion.rb
bond-0.4.2-java lib/bond/completion.rb
bond-0.4.1 lib/bond/completion.rb
bond-0.4.0 lib/bond/completion.rb
bond-0.3.5 lib/bond/completion.rb
bond-0.3.4 lib/bond/completion.rb
bond-0.3.3 lib/bond/completion.rb
bond-0.3.2 lib/bond/completion.rb
bond-0.3.1 lib/bond/completion.rb
bond-0.3.0 lib/bond/completion.rb