lib/tailor/lexer/token.rb in tailor-1.3.1 vs lib/tailor/lexer/token.rb in tailor-1.4.0

- old
+ new

@@ -5,11 +5,11 @@ class Tailor class Lexer < ::Ripper::Lexer # Helper methods for tokens that are parsed by {Tailor::Lexer}. class Token < String - include LexerConstants + include Tailor::LexerConstants include Tailor::Logger::Mixin # @param [String] the_token # @param [Hash] options def initialize(the_token, options={}) @@ -61,10 +61,10 @@ # Checks the current line to see if +self+ is being used as a modifier. # # @return [Boolean] True if there's a modifier in the current line that # is the same type as +token+. def modifier_keyword? - return false if not keyword_to_indent? + return false unless keyword_to_indent? line_of_text = @options[:full_line_of_text] log "Line of text: #{line_of_text}" catch(:result) do