Class: ZOMG::IDL::Nodes::Attribute
- Defined in:
- lib/zomg/idl/nodes/attribute.rb
Instance Attribute Summary collapse
-
#readonly ⇒ Object
Returns the value of attribute readonly.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(type, names, readonly = false) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from Node
#duhr, #to_i, #to_ruby, #to_ruby_sexp, #to_sexp
Methods included from Visitable
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
#readonly ⇒ Object
Returns the value of attribute readonly.
6 7 8 |
# File 'lib/zomg/idl/nodes/attribute.rb', line 6 def readonly @readonly end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/zomg/idl/nodes/attribute.rb', line 6 def type @type end |