lib/krikri/parser.rb in krikri-0.8.9 vs lib/krikri/parser.rb in krikri-0.9.0
- old
+ new
@@ -27,9 +27,16 @@
def self.parse(record, *args)
record.is_a?(Krikri::Parser) ? record : new(record, *args)
end
##
+ # @return [String] the local_name of the OriginalRecord wrapped by this
+ # parser
+ def local_name
+ record.local_name
+ end
+
+ ##
# A generic parser value.
#
# Interface to a single value node which can access typed data values (e.g.
# String, DateTime, etc...) parsed from a string, and provides access to
# child nodes and attributes.