Class: Divine::SimpleDefinition
- Inherits:
-
StructDefinition
- Object
- StructDefinition
- Divine::SimpleDefinition
- Defined in:
- lib/divine/dsl.rb
Overview
Encapsulation simple struct information
Direct Known Subclasses
BinaryDefinition, BooleanDefinition, DynamicInteger63Definition, Integer16Definition, Integer24Definition, Integer32Definition, Integer8Definition, IpNumberDefinition, SInteger32Definition, SInteger64Definition, ShortBinaryDefinition, StringDefinition
Instance Method Summary collapse
-
#referenced_types ⇒ Object
Get types used in the struct.
-
#simple? ⇒ Boolean
Ask if the struct is simple.
Methods inherited from StructDefinition
#initialize, #name, #to_s, #type, #version
Constructor Details
This class inherits a constructor from Divine::StructDefinition
Instance Method Details
#referenced_types ⇒ Object
Get types used in the struct
54 55 56 |
# File 'lib/divine/dsl.rb', line 54 def referenced_types [@type] end |
#simple? ⇒ Boolean
Ask if the struct is simple.
-
Return
: True
49 |
# File 'lib/divine/dsl.rb', line 49 def simple?; true; end |