Class: Babeltrace2Gen::BTFieldClass::Option

Inherits:
Babeltrace2Gen::BTFieldClass show all
Defined in:
lib/metababel/bt2_stream_classes_generator.rb

Direct Known Subclasses

WithSelectorField, WithoutSelectorField

Defined Under Namespace

Classes: WithSelectorField, WithoutSelectorField

Constant Summary

Constants included from Babeltrace2Gen::BTPrinter

Babeltrace2Gen::BTPrinter::INDENT_INCREMENT

Instance Attribute Summary collapse

Attributes inherited from Babeltrace2Gen::BTFieldClass

#cast_type

Attributes included from Babeltrace2Gen::BTLocator

#parent, #variable

Instance Method Summary collapse

Methods inherited from Babeltrace2Gen::BTFieldClass

#bt_get_variable, from_h, #get_declarator, #get_getter, #get_setter

Methods included from Babeltrace2Gen::BTPrinter

context, #name_sanitized, pr, #scope

Methods included from Babeltrace2Gen::BTLocator

#rec_event_class, #rec_menber_class, #rec_stream_class, #resolve_path

Constructor Details

#initialize(parent:, field_class:) ⇒ Option

Returns a new instance of Option.



709
710
711
712
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 709

def initialize(parent:, field_class:)
  @parent = parent
  @field_class = BTFieldClass.from_h(self, field_class)
end

Instance Attribute Details

#field_classObject (readonly)

Returns the value of attribute field_class.



707
708
709
# File 'lib/metababel/bt2_stream_classes_generator.rb', line 707

def field_class
  @field_class
end