Class: Habaki::QualifiedName
Overview
name with optional ns prefix
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(local = nil, prefix = nil) ⇒ QualifiedName
constructor
A new instance of QualifiedName.
- #read_from_katana(tag) ⇒ Object private
- #string(format = Formatter::Base.new) ⇒ String
Methods inherited from Node
Constructor Details
#initialize(local = nil, prefix = nil) ⇒ QualifiedName
Returns a new instance of QualifiedName.
11 12 13 14 |
# File 'lib/habaki/qualified_name.rb', line 11 def initialize(local = nil, prefix = nil) @local = local @prefix = prefix end |
Instance Attribute Details
Instance Method Details
#read_from_katana(tag) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 |
# File 'lib/habaki/qualified_name.rb', line 24 def read_from_katana(tag) @local = tag.local @prefix = tag.prefix end |