Class: C::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/cast-to-yaml/to_yaml.rb

Instance Method Summary collapse

Instance Method Details

#to_h_splitObject



320
321
322
323
324
325
326
# File 'lib/cast-to-yaml/to_yaml.rb', line 320

def to_h_split
  res = {}
  res["name"] = name.to_s if name.to_s != ''
  res["type"] = type.to_h_split
  res["register"] = true if register?
  res
end