Class: Stark::Parser::AST::Namespace

Inherits:
Node
  • Object
show all
Defined in:
lib/stark/ast.rb,
lib/stark/raw_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#langObject (readonly)

Returns the value of attribute lang.



469
470
471
# File 'lib/stark/raw_parser.rb', line 469

def lang
  @lang
end

#namespaceObject (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