lib/xommelier/xml/namespace.rb in xommelier-0.1.30 vs lib/xommelier/xml/namespace.rb in xommelier-0.1.31

- old
+ new

@@ -1,13 +1,21 @@ +# coding: utf-8 + +################################################ +# © Alexander Semyonov, 2011—2013, MIT License # +# Author: Alexander Semyonov <al@semyonov.us> # +################################################ + require 'xommelier/xml' require 'xommelier/xml/element' require 'active_support/core_ext/array/extract_options' module Xommelier module Xml class Namespace attr_reader :uri, :options, :elements, :attributes alias to_s uri + alias href uri def initialize(uri, options = {}, &block) @uri = uri @options = {} @as = options.delete(:as)