Class: Hash

Inherits:
Object show all
Defined in:
lib/plasma/interpreter/class_mods.rb

Instance Method Summary collapse

Instance Method Details

#to_plasmaObject



35
36
37
38
39
40
41
# File 'lib/plasma/interpreter/class_mods.rb', line 35

def to_plasma
  plasma = self.map do |key, value|
    "#{key.to_s}:#{value.to_plasma}"
  end.join ' '

  return "{#{plasma}}"
end