Class: WolfRpg::Command::SetString

Inherits:
WolfRpg::Command show all
Defined in:
lib/wolfrpg/command.rb

Instance Attribute Summary

Attributes inherited from WolfRpg::Command

#args, #cid, #indent, #string_args

Instance Method Summary collapse

Methods inherited from WolfRpg::Command

create, #dump

Instance Method Details

#textObject



64
65
66
67
68
69
70
# File 'lib/wolfrpg/command.rb', line 64

def text
  if @string_args.length > 0
    @string_args[0]
  else
    ''
  end
end

#text=(value) ⇒ Object



72
73
74
# File 'lib/wolfrpg/command.rb', line 72

def text=(value)
  @string_args[0] = value
end