Method: XMLable::Handlers::Namespace#initialize
- Defined in:
- lib/xmlable/handlers/namespace.rb
#initialize(prefix_or_href = nil, href = nil, _opts = {}) ⇒ Namespace
Returns a new instance of Namespace.
16 17 18 19 20 21 22 23 |
# File 'lib/xmlable/handlers/namespace.rb', line 16 def initialize(prefix_or_href = nil, href = nil, _opts = {}) if prefix.to_s =~ URI.regexp @href = prefix_or_href else @prefix = prefix_or_href @href = href end end |