Sha256: b902a26cbbd91768825897689408165ce5e389def4f6eac004525f1cacd8c614

Contents?: true

Size: 636 Bytes

Versions: 76

Compression:

Stored size: 636 Bytes

Contents

module YARD
  module Parser
    module Ruby
      module Legacy
        # Legacy Ruby parser
        # @since 0.5.6
        class RubyParser < Parser::Base
          def initialize(source, filename)
            @source = source
          end

          def parse
            @parse ||= StatementList.new(@source)
            self
          end

          def tokenize
            @tokenize ||= TokenList.new(@source)
          end

          def enumerator
            @parse
          end

          def encoding_line; @parse.encoding_line end
          def shebang_line; @parse.shebang_line end
        end
      end
    end
  end
end

Version data entries

76 entries across 59 versions & 8 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/parser/ruby/legacy/ruby_parser.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.5 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.4 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.3 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.2 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.1 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.9.0 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.7.6 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.7.5 lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.7.4 lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/parser/ruby/legacy/ruby_parser.rb