Class: WebIDL::Ast::Const
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(parent, type, name, value) ⇒ Const
constructor
A new instance of Const.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/webidl/ast/const.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/webidl/ast/const.rb', line 5 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/webidl/ast/const.rb', line 5 def value @value end |