Class: Babeltrace2Gen::BTFieldClass::Option
- Inherits:
-
Babeltrace2Gen::BTFieldClass
- Object
- Babeltrace2Gen::BTFieldClass
- Babeltrace2Gen::BTFieldClass::Option
- Defined in:
- lib/metababel/bt2_trace_class_generator.rb
Direct Known Subclasses
Defined Under Namespace
Classes: WithSelectorField, WithoutSelectorField
Constant Summary
Constants inherited from Babeltrace2Gen::BTFieldClass
Constants included from Babeltrace2Gen::BTPrinter
Babeltrace2Gen::BTPrinter::INDENT_INCREMENT
Instance Attribute Summary collapse
-
#field_class ⇒ Object
readonly
Returns the value of attribute field_class.
Attributes inherited from Babeltrace2Gen::BTFieldClass
#cast_type, #cast_type_is_struct, #type
Attributes included from Babeltrace2Gen::BTLocator
Instance Method Summary collapse
-
#initialize(parent:, field_class:) ⇒ Option
constructor
A new instance of Option.
Methods inherited from Babeltrace2Gen::BTFieldClass
#bt_get_variable, from_h, #get_declarator, #get_getter, #get_setter
Methods included from Babeltrace2Gen::BTMatch
Methods included from Babeltrace2Gen::BTPrinter
context, #name_sanitized, pr, #scope
Methods included from Babeltrace2Gen::BTLocator
#rec_event_class, #rec_member_class, #rec_stream_class, #rec_trace_class, #resolve_path
Constructor Details
#initialize(parent:, field_class:) ⇒ Option
Returns a new instance of Option.
872 873 874 875 |
# File 'lib/metababel/bt2_trace_class_generator.rb', line 872 def initialize(parent:, field_class:) @parent = parent @field_class = BTFieldClass.from_h(self, field_class) end |
Instance Attribute Details
#field_class ⇒ Object (readonly)
Returns the value of attribute field_class.
870 871 872 |
# File 'lib/metababel/bt2_trace_class_generator.rb', line 870 def field_class @field_class end |