class Steamd::Generator::Variable
Represents an class variable from the Generator
Attributes
modifier[R]
The variable modifier
modifier_size[R]
The variable modifier size
name[R]
The name of the Variable
size[R]
The variable size
type[R]
The variable Type
value[R]
The variable value
Public Class Methods
new(opts)
click to toggle source
Create a new GeneratedClass
# File lib/steamd/generator/generated_class.rb, line 26 def initialize(opts) @name = opts[:name] @value = opts[:value] @type = opts[:type] @modifier = opts[:modifier] @modifier_size = opts[:modifier_size] end
Public Instance Methods
to_hash()
click to toggle source
Return the variable as a hash
# File lib/steamd/generator/generated_class.rb, line 75 def to_hash { name: name, type: type, modifier: modifier, value: value, size: size, modifier_size: modifier_size } end
Also aliased as: to_h