org.radrails.rails.internal.ui.editors.ruby
Class RubyWordDetector

java.lang.Object
  extended byorg.radrails.rails.internal.ui.editors.ruby.RubyWordDetector
All Implemented Interfaces:
org.eclipse.jface.text.rules.IWordDetector

public class RubyWordDetector
extends java.lang.Object
implements org.eclipse.jface.text.rules.IWordDetector

Word detector for Ruby keywords. Uses regular expressions. Ruby keywords can start with any word character, and can contain any word character or a question mark.

Author:
mkent

Constructor Summary
RubyWordDetector()
           
 
Method Summary
 boolean isWordPart(char c)
           
 boolean isWordStart(char c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyWordDetector

public RubyWordDetector()
Method Detail

isWordStart

public boolean isWordStart(char c)
Specified by:
isWordStart in interface org.eclipse.jface.text.rules.IWordDetector

isWordPart

public boolean isWordPart(char c)
Specified by:
isWordPart in interface org.eclipse.jface.text.rules.IWordDetector