$ ruby tags.rb
5 def Rubinius.ruby18?
6 class SyntaxError
7 def SyntaxError.from
13 class Rubinius::AST::Node
14 def Rubinius::AST::Node#visit
26 def Rubinius::AST::Node#full_name
31 class Visitor
32 def Visitor#initialize
46 def Visitor#emit_tag
54 def Visitor#s_class
62 def Visitor#s_class_end
69 def Visitor#class
81 def Visitor#class_end
87 def Visitor#define
98 def Visitor#define_end
102 def Visitor#define_singleton
106 def Visitor#define_singleton_end
111 def Visitor#constant_assignment
$ ruby tags.rb /usr/lib/ruby/1.8/timeout.rb
30 module Timeout
35 class Timeout::Error
37 class Timeout::ExitException
40 const Timeout::THIS_FILE
41 const Timeout::CALLER_OFFSET
52 def Timeout#timeout
100 def Object#timeout
108 const TimeoutError
$ ruby tags.rb /usr/lib/ruby/1.8/timeout.rb --ctags
!_TAG_FILE_FORMAT 2 /extended format/
!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
Timeout /usr/lib/ruby/1.8/timeout.rb /^module Timeout$/;" m
Error /usr/lib/ruby/1.8/timeout.rb /^ class Error < Interrupt$/;" c class:Timeout inherits:Interrupt
ExitException /usr/lib/ruby/1.8/timeout.rb /^ class ExitException < ::Exception # :nodoc:$/;" c class:Timeout inherits:Exception
THIS_FILE /usr/lib/ruby/1.8/timeout.rb /^ THIS_FILE = \/\\A#{Regexp.quote(__FILE__)}:\/o$/;" C
CALLER_OFFSET /usr/lib/ruby/1.8/timeout.rb /^ CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0$/;" C
timeout /usr/lib/ruby/1.8/timeout.rb /^ def timeout(sec, klass = nil)$/;" f class:Timeout
timeout /usr/lib/ruby/1.8/timeout.rb /^def timeout(n, e = nil, &block) # :nodoc:$/;" f
TimeoutError /usr/lib/ruby/1.8/timeout.rb /^TimeoutError = Timeout::Error # :nodoc:$/;" C
$ ruby tags.rb /usr/lib/ruby/1.8/timeout.rb --json
{"kind":"module","language":"Ruby","line":30,"full_name":"Timeout","name":"Timeout","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":"module Timeout"}
{"kind":"class","language":"Ruby","line":35,"full_name":"Timeout::Error","name":"Error","class":"Timeout","inherits":"Interrupt","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":" class Error < Interrupt"}
{"kind":"class","language":"Ruby","line":37,"full_name":"Timeout::ExitException","name":"ExitException","class":"Timeout","inherits":"Exception","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":" class ExitException < ::Exception # :nodoc:"}
{"kind":"constant","language":"Ruby","line":40,"name":"THIS_FILE","full_name":"Timeout::THIS_FILE","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":" THIS_FILE = /\\A#{Regexp.quote(__FILE__)}:/o"}
{"kind":"constant","language":"Ruby","line":41,"name":"CALLER_OFFSET","full_name":"Timeout::CALLER_OFFSET","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":" CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0"}
{"kind":"method","language":"Ruby","line":52,"name":"timeout","class":"Timeout","full_name":"Timeout#timeout","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":" def timeout(sec, klass = nil)"}
{"kind":"method","language":"Ruby","line":100,"name":"timeout","full_name":"Object#timeout","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":"def timeout(n, e = nil, &block) # :nodoc:"}
{"kind":"constant","language":"Ruby","line":108,"name":"TimeoutError","full_name":"TimeoutError","path":"/usr/lib/ruby/1.8/timeout.rb","pattern":"TimeoutError = Timeout::Error # :nodoc:"}
Last active
December 10, 2015 07:58
-
-
Save tmm1/4404083 to your computer and use it in GitHub Desktop.
Simple ctags generator for ruby code using melbourne.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment