# encoding: UTF-8

class WpTheme < WpItem
  module Versionable

    def version
      unless @version
        @version = Browser.get(style_url).body[%r{Version:\s([^\s]+)}i, 1]

        # Get Version from readme.txt
        @version ||= super
      end
      @version
    end

  end
end
