Class: WebIDL::Ast::DictionaryMember

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueObject (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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end