class Rprompt::RvmGemset
Public Instance Methods
gemset()
click to toggle source
@return [String] gemset used
# File lib/rprompt.rb, line 104 def gemset text = commandResult.chomp if text.include?('@') text.match(/.+@(.+)/)[1] else '' end end
show()
click to toggle source
@return [String] terminal representation of the gemset used
# File lib/rprompt.rb, line 114 def show !gemset.empty? ? termShow({:color => color, :symbol => symbol, :content => gemset}) : '' end