Class: VariableWithModifierNoValue

Inherits:
VariableWithModifier show all
Defined in:
lib/steamd/nodes/variable_node.rb

Overview

A variable with a modifier but no value ie: proto header hi;

Direct Known Subclasses

VariableWithModifierWithValue

Instance Method Summary collapse

Methods inherited from VariableWithModifier

#modifier_size, #sized?

Methods inherited from Variable

#name, #size, #type

Instance Method Details

#to_hashHash

Hash representation of the VariableWithModifierNoValue

Returns:

  • (Hash)


72
73
74
75
76
77
78
79
# File 'lib/steamd/nodes/variable_node.rb', line 72

def to_hash
  hsh = super

  hsh.merge!(
    modifier: var_modifier.word.text_value,
    modifier_size: modifier_size
  )
end