Class: TCOD::TCODValueT

Inherits:
MethodUnion show all
Defined in:
lib/libtcod/bindings.rb

Instance Method Summary collapse

Methods inherited from MethodUnion

layout, old_layout

Instance Method Details

#sObject



376
377
378
# File 'lib/libtcod/bindings.rb', line 376

def s
  @s.get_string(0)
end

#s=(str) ⇒ Object



372
373
374
375
# File 'lib/libtcod/bindings.rb', line 372

def s=(str)
  @s = FFI::MemoryPointer.from_string(str)
  self[:s] = @s
end