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
challah-1.0.0.beta vendor/bundle/gems/yard-0.8.5.2/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-1.0.0.beta vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.5.2 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.5.1 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.5 lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.9.1.beta.3 vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.4.1 lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.4 lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.9.1.beta vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.9.0 vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.3/lib/yard/parser/ruby/legacy/ruby_parser.rb
yard-0.8.3 lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-0.8.1 vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb
challah-rolls-0.1.0 vendor/bundle/gems/yard-0.8.2.1/lib/yard/parser/ruby/legacy/ruby_parser.rb