Class: Schema::Node::SourceInfo::Member

Inherits:
Capnp::Struct show all
Defined in:
lib/capnp/generator/schema.capnp.rb

Defined Under Namespace

Classes: List

Constant Summary collapse

DEFAULT_DOC_COMMENT =
nil

Instance Method Summary collapse

Methods inherited from Capnp::Struct

decode_pointer, from_pointer, #initialize

Constructor Details

This class inherits a constructor from Capnp::Struct

Instance Method Details

#doc_commentObject



239
# File 'lib/capnp/generator/schema.capnp.rb', line 239

def doc_comment = Capnp::BufferString.from_pointer(read_pointer(0))

#to_objObject



247
248
249
250
251
# File 'lib/capnp/generator/schema.capnp.rb', line 247

def to_obj
  res = {}
  res["doc_comment"] = doc_comment&.to_obj
  res
end