Module: Gogyou::Accessor::TemporaryMixin

Included in:
TemporaryArray, TemporaryStruct, TemporaryUnion
Defined in:
lib/gogyou/accessor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#model__GOGYOU__Object (readonly)

Returns the value of attribute model__GOGYOU__.



359
360
361
# File 'lib/gogyou/accessor.rb', line 359

def model__GOGYOU__
  @model__GOGYOU__
end

Instance Method Details

#initialize(buffer, offset, model) ⇒ Object



361
362
363
364
365
# File 'lib/gogyou/accessor.rb', line 361

def initialize(buffer, offset, model)
  super(buffer, offset)
  @model__GOGYOU__ = nil
  self.class.define_accessors(singleton_class, model)
end

#inspectObject



367
368
369
370
371
372
# File 'lib/gogyou/accessor.rb', line 367

def inspect
  "#<%s buffer=%p, offset=%p, model=%p>" % [self.class,
                                            buffer__GOGYOU__,
                                            offset__GOGYOU__,
                                            model__GOGYOU__]
end

#pretty_print(q) ⇒ Object



374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# File 'lib/gogyou/accessor.rb', line 374

def pretty_print(q)
  q.group(1, "#<#{self.class}") do
    q.breakable " "
    q.text "buffer="
    q.pp buffer__GOGYOU__
    q.text ","
    q.breakable " "
    q.text "offset="
    q.pp offset__GOGYOU__
    q.text ","
    q.breakable " "
    q.text "model="
    q.pp model__GOGYOU__ #|| self.class.model
    q.text ">"
  end
end