Class: String

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

Instance Method Summary collapse

Instance Method Details

#classifyObject



8
9
10
# File 'lib/plasma/interpreter/class_mods.rb', line 8

def classify
  self.split('_').map{|s| s.capitalize}.join
end

#to_plasmaObject



12
13
14
# File 'lib/plasma/interpreter/class_mods.rb', line 12

def to_plasma
  self.inspect
end