lib/slim_lint/atom.rb in slim_lint-0.8.0 vs lib/slim_lint/atom.rb in slim_lint-0.8.1
- old
+ new
@@ -2,9 +2,13 @@
# Represents an atomic, childless, literal value within an S-expression.
#
# This creates a light wrapper around literal values of S-expressions so we
# can make an {Atom} quack like a {Sexp} without being an {Sexp}.
class Atom
+ # Stores the line number of the code in the original document that this Atom
+ # came from.
+ attr_accessor :line
+
# Creates an atom from the specified value.
#
# @param value [Object]
def initialize(value)
@value = value