1# -*- coding: binary -*- 2 3module Rex 4module Post 5module HWBridge 6 7### 8# 9# Base class for all extensions that holds a reference to the 10# client context that they are part of. Each extension also has a defined 11# name through which it is referenced. 12# 13### 14class Extension 15 16 # 17 # Initializes the client and name attributes. 18 # 19 def initialize(client, name) 20 self.client = client 21 self.name = name 22 end 23 24 # 25 # The name of the extension. 26 # 27 attr_accessor :name 28protected 29 attr_accessor :client # :nodoc: 30end 31 32end; end; end 33 34