lib/code/parser/code.rb in code-ruby-0.5.6 vs lib/code/parser/code.rb in code-ruby-0.6.0

- old
+ new

@@ -1,17 +1,19 @@ +# frozen_string_literal: true + class Code class Parser class Code < Language def whitespace - ::Code::Parser::Whitespace + Whitespace end - def whitespace?(&block) - whitespace.maybe(&block) + def whitespace? + whitespace.maybe end def statement - ::Code::Parser::Statement + Statement end def present (whitespace? << statement << whitespace?).repeat(1) end