Class: Oppen::Token::Whitespace

Inherits:
String show all
Defined in:
lib/oppen/token.rb

Overview

This token is not part of Oppen's original work. We introduced it to handle trailing whitespaces.

When the config flag trim_trailing_whitespaces == true, and a new line is needed, all the Whitespace figuring after the last String will be be skipped.

Instance Attribute Summary

Attributes inherited from String

#value, #width

Method Summary

Methods inherited from String

#initialize, #to_s

Methods inherited from Oppen::Token

#width

Constructor Details

This class inherits a constructor from Oppen::Token::String