Class: Stark::Parser::AST::Namespace
- Defined in:
- lib/stark/ast.rb,
lib/stark/raw_parser.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
- #accept(obj) ⇒ Object
-
#initialize(lang, namespace) ⇒ Namespace
constructor
A new instance of Namespace.
Constructor Details
#initialize(lang, namespace) ⇒ Namespace
Returns a new instance of Namespace.
465 466 467 468 |
# File 'lib/stark/raw_parser.rb', line 465 def initialize(lang, namespace) @lang = lang @namespace = namespace end |
Instance Attribute Details
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
469 470 471 |
# File 'lib/stark/raw_parser.rb', line 469 def lang @lang end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
470 471 472 |
# File 'lib/stark/raw_parser.rb', line 470 def namespace @namespace end |
Instance Method Details
#accept(obj) ⇒ Object
6 7 8 |
# File 'lib/stark/ast.rb', line 6 def accept(obj) obj.process_namespace self end |