Class: WebIDL::Ast::Const

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/const.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from Node

#accept, #qualified_name, #snake_name

Constructor Details

#initialize(parent, type, name, value) ⇒ Const

Returns a new instance of Const.



7
8
9
10
11
12
13
# File 'lib/webidl/ast/const.rb', line 7

def initialize(parent, type, name, value)
  super(parent)

  @type  = type
  @name  = name
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/webidl/ast/const.rb', line 5

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/webidl/ast/const.rb', line 5

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/webidl/ast/const.rb', line 5

def value
  @value
end