Skip to content

Instantly share code, notes, and snippets.

@cfcosta
Created October 10, 2011 02:15
Show Gist options
  • Save cfcosta/1274495 to your computer and use it in GitHub Desktop.
Save cfcosta/1274495 to your computer and use it in GitHub Desktop.
module Stewie
autoload :PluginManager, 'stewie/plugin_manager'
autoload :IrcProtocolParser, 'stewie/irc_protocol_parser'
autoload :Connection, 'stewie/connection'
class << self
def configure
yield self
end
def mattr_acessor(name)
class_eval "def self.#{name}; @@#{name} ||= nil ; end"
class_eval "def self.#{name}=(value); @@#{name} = value ; end"
end
end
mattr_acessor :server
mattr_acessor :port
mattr_acessor :channel
mattr_acessor :nick
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment