Ameba::Source::Corrector
This class takes source code and rewrites it based on the different correction actions supplied.
Constructors
Instance methods
Shortcut for wrap(location, end_location, nil, content)
Shortcut for wrap(location, end_location, content, nil)
Removes size characters from the beginning of the given range. If size is greater than the size of the range, the removed region can overrun the end of the range.
Removes size characters from the beginning of the given range. If size is greater than the size of the range, the removed region can overrun the end of the range.
Removes size characters from the beginning of the given node. If size is greater than the size of the node, the removed region can overrun the end of the node.
Removes size characters prior to the source range.
Removes size characters prior to the source range.
Removes size characters prior to the given node.
Removes size characters from the end of the given range. If size is greater than the size of the range, the removed region can overrun the beginning of the range.
Removes size characters from the end of the given range. If size is greater than the size of the range, the removed region can overrun the beginning of the range.
Removes size characters from the end of the given node. If size is greater than the size of the node, the removed region can overrun the beginning of the node.
Replaces the code of the given range with content.
Inserts the given strings before and after the given range.
Inserts the given strings before and after the given range.
Inserts the given strings before and after the given node.