Class: ZOMG::IDL::Nodes::Attribute

Inherits:
Node
  • Object
show all
Defined in:
lib/zomg/idl/nodes/attribute.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #name

Instance Method Summary collapse

Methods inherited from Node

#duhr, #to_i, #to_ruby, #to_ruby_sexp, #to_sexp

Methods included from Visitable

#accept

Constructor Details

#initialize(type, names, readonly = false) ⇒ Attribute

Returns a new instance of Attribute.



7
8
9
10
11
# File 'lib/zomg/idl/nodes/attribute.rb', line 7

def initialize(type, names, readonly = false)
  super(names)
  @type = type
  @readonly = readonly
end

Instance Attribute Details

#readonlyObject

Returns the value of attribute readonly.



6
7
8
# File 'lib/zomg/idl/nodes/attribute.rb', line 6

def readonly
  @readonly
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/zomg/idl/nodes/attribute.rb', line 6

def type
  @type
end