class Rprompt::RvmRuby

Public Instance Methods

ruby() click to toggle source

@return [String] ruby used

# File lib/rprompt.rb, line 87
def ruby
        text = commandResult.chomp
        if text.include?('@')
                text.match(/ruby-(.+)@/)[1]
        else
                text.gsub!(/ruby-/, '')
        end
end
show() click to toggle source

@return [String] terminal representation of the ruby version

# File lib/rprompt.rb, line 97
def show
        termShow({:color => color, :symbol => symbol, :content => ruby})
end