summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/nodes/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych/nodes/node.rb')
-rw-r--r--ext/psych/lib/psych/nodes/node.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/nodes/node.rb b/ext/psych/lib/psych/nodes/node.rb
index 1c76721..6d86669a 100644
--- a/ext/psych/lib/psych/nodes/node.rb
+++ b/ext/psych/lib/psych/nodes/node.rb
@@ -17,6 +17,18 @@ module Psych
# An associated tag
attr_reader :tag
+ # The line number where this node start
+ attr_accessor :start_line
+
+ # The column number where this node start
+ attr_accessor :start_column
+
+ # The line number where this node ends
+ attr_accessor :end_line
+
+ # The column number where this node ends
+ attr_accessor :end_column
+
# Create a new Psych::Nodes::Node
def initialize
@children = []