Class: WebIDL::Ast::Field
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(parent, type, name) ⇒ Field
constructor
A new instance of Field.
Methods inherited from Node
#accept, #qualified_name, #snake_name
Constructor Details
#initialize(parent, type, name) ⇒ Field
Returns a new instance of Field.
7 8 9 10 |
# File 'lib/webidl/ast/field.rb', line 7 def initialize(parent, type, name) super(parent) @type, @name = type, name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/webidl/ast/field.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/webidl/ast/field.rb', line 5 def type @type end |