Browse files

Removing bare initializers.

  • Loading branch information...
1 parent e5c85e9 commit 0fadf58235c70818a0fbfb1b896de6bd78158a41 @jqr jqr committed Aug 29, 2008
Showing with 1 addition and 14 deletions.
  1. +1 −1 lib/snitch/service.rb
  2. +0 −4 lib/snitch/services/echo.rb
  3. +0 −5 lib/snitch/services/email.rb
  4. +0 −4 lib/snitch/services/twitter.rb
View
2 lib/snitch/service.rb
@@ -1,6 +1,6 @@
class Snitch
class Service
- attr_accessor :base, :attributes
+ attr_accessor :attributes
def self.new_from_name(s, attributes)
"Snitch::Services::#{s.to_s.camelize}".constantize.new(attributes)
View
4 lib/snitch/services/echo.rb
@@ -1,10 +1,6 @@
class Snitch
module Services
class Echo < Service
- def initialize(options)
- super(options)
- end
-
def tattle(message)
puts message
end
View
5 lib/snitch/services/email.rb
@@ -5,11 +5,6 @@
class Snitch
module Services
class Email < Service
-
- def initialize(options)
- super(options)
- end
-
def default_options
super.merge(:message_length => :superlong)
end
View
4 lib/snitch/services/twitter.rb
@@ -3,10 +3,6 @@
class Snitch
module Services
class Twitter < Service
- def initialize(options = {})
- super
- end
-
def default_options
super.merge(:message_length => :short)
end

0 comments on commit 0fadf58

Please sign in to comment.