Module: TkInspect::ClassBrowser

Defined in:
lib/tk_inspect/class_browser/base.rb,
lib/tk_inspect/class_browser/code_component.rb,
lib/tk_inspect/class_browser/root_component.rb,
lib/tk_inspect/class_browser/class_tree_data_source.rb,
lib/tk_inspect/class_browser/module_method_data_source.rb,
lib/tk_inspect/class_browser/class_namespace_data_source.rb

Defined Under Namespace

Classes: Base, ClassNamespaceDataSource, ClassTreeDataSource, CodeComponent, ModuleMethodDataSource, RootComponent

Constant Summary collapse

TOKEN_TAGS =
{
  'Rouge::Token::Tokens::Comment::Single' => :comment,
  'Rouge::Token::Tokens::Keyword' => :keyword,
  'Rouge::Token::Tokens::Name::Class' => :constant,
  'Rouge::Token::Tokens::Name::Constant' => :constant,
  'Rouge::Token::Tokens::Name::Function' => :method,
  'Rouge::Token::Tokens::Str::Double' => :string,
  'Rouge::Token::Tokens::Str::Single' => :string,
  'Rouge::Token::Tokens::Str::Interpol' => :string,
  'Rouge::Token::Tokens::Str::Symbol' => :symbol,
  'Rouge::Token::Tokens::Str::Heredoc' => :string,
  'Rouge::Token::Tokens::Name::Variable::Instance' => :ivar
}
TAG_STYLES =
{
  string: { foreground: 'red' },
  comment: { foreground: 'gray' },
  keyword: { foreground: 'blue' },
  constant: { foreground: 'green' },
  symbol: { foreground: 'purple' },
  method: { foreground: 'brown' },
  ivar: { foreground: 'brown' }
}