Skip to content
Browse files

Preparing for RDoc documentation

  • Loading branch information...
1 parent 07f22ef commit e296431b1945bd075f325e05e9470b79f069c24f @stevenh512 committed Jun 25, 2010
Showing with 15 additions and 15 deletions.
  1. +4 −4 lib/generators/koala.rb
  2. +5 −5 lib/generators/koala/install/install_generator.rb
  3. +6 −6 lib/koala-rails/helpers.rb
View
8 lib/generators/koala.rb
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
-module Koala
- module Generators
- module TemplatePath
- def source_root
+module Koala # :nodoc:
+ module Generators # :nodoc:
+ module TemplatePath # :nodoc:
+ def source_root # :nodoc:
@_koala_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'koala', generator_name, 'templates'))
end
end
View
10 lib/generators/koala/install/install_generator.rb
@@ -1,16 +1,16 @@
# -*- encoding: utf-8 -*-
require 'generators/koala'
-module Koala
- module Generators
- class InstallGenerator < Rails::Generators::Base
+module Koala # :nodoc:
+ module Generators # :nodoc:
+ class InstallGenerator < Rails::Generators::Base # :nodoc:
extend TemplatePath
- def copy_config_file
+ def copy_config_file # :nodoc:
template "config/facebook.yml.tt", "config/facebook.yml"
end
- def copy_initializer_file
+ def copy_initializer_file # :nodoc:
template "config/initializers/koala.rb.tt", "config/initializers/koala.rb"
end
View
12 lib/koala-rails/helpers.rb
@@ -1,19 +1,19 @@
# -*- encoding: utf-8 -*-
-module KoalaRails
- module Helpers
- def facebook_session
+module KoalaRails # :nodoc:
+ module Helpers # :nodoc:
+ def facebook_session # :nodoc:
@facebook_session ||= Koala::Facebook::OAuth.new.get_user_from_cookie(cookies)
end
- def facebook_token
+ def facebook_token # :nodoc:
@facebook_access_token ||= facebook_session['access_token']
end
- def facebook_uid
+ def facebook_uid # :nodoc:
@facebook_uid ||= facebook_session['uid']
end
- def facebook_session_key
+ def facebook_session_key # :nodoc:
@facebook_session_key ||= facebook_session['session_key']
end
end

0 comments on commit e296431

Please sign in to comment.
Something went wrong with that request. Please try again.