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