Skip to content

Commit

Permalink
Whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed May 20, 2011
1 parent f1adab4 commit ad43c24
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions lib/tabs_on_rails/tabs.rb
@@ -1,8 +1,8 @@
#
#
# = Tabs on Rails
#
# A simple Ruby on Rails plugin for creating and managing Tabs.
#
#
#
# Category:: Rails
# Package:: TabsOnRails
Expand Down Expand Up @@ -37,7 +37,7 @@ def initialize(context, options = {})
end # end
end # end
end

def method_missing(*args, &block)
@builder.tab_for(*args, &block)
end
Expand Down
14 changes: 7 additions & 7 deletions lib/tabs_on_rails/tabs/builder.rb
@@ -1,8 +1,8 @@
#
#
# = Tabs on Rails
#
# A simple Ruby on Rails plugin for creating and managing Tabs.
#
#
#
# Category:: Rails
# Package:: TabsOnRails
Expand All @@ -17,14 +17,14 @@
module TabsOnRails
class Tabs

#
#
# = Builder
#
# The Builder class represents the interface for any custom Builder.
#
#
# To create a custom Builder, extend this class
# and implement the following abstract methods:
#
#
# * <tt>tab_for</tt>
#
# Optionally, you can override the following methods to customize
Expand All @@ -48,11 +48,11 @@ def initialize(context, options = {})
# Returns true if +tab+ is the +current_tab+.
#
# Examples
#
#
# class MyController < ApplicationController
# tab :foo
# end
#
#
# current_tab? :foo # => true
# current_tab? 'foo' # => true
# current_tab? :bar # => false
Expand Down
14 changes: 7 additions & 7 deletions lib/tabs_on_rails/tabs/tabs_builder.rb
@@ -1,8 +1,8 @@
#
#
# = Tabs on Rails
#
# A simple Ruby on Rails plugin for creating and managing Tabs.
#
#
#
# Category:: Rails
# Package:: TabsOnRails
Expand All @@ -19,22 +19,22 @@ class Tabs

#
# = Tabs Builder
#
#
# The TabsBuilder is and example of custom Builder.
#
class TabsBuilder < Builder

# Returns a link_to +tab+ with +name+ and +options+ if +tab+ is not the current tab,
# a simple tab name wrapped by a span tag otherwise.
#
#
# current_tab? :foo # => true
#
#
# tab_for :foo, 'Foo', foo_path
# # => "<li class="current"><span>Foo</span></li>"
#
#
# tab_for :bar, 'Bar', bar_path
# # => "<li><a href="/link/to/bar">Bar</a></li>"
#
#
# You can pass a hash of <tt>item_options</tt>
# to customize the behavior and the style of the li element.
#
Expand Down

0 comments on commit ad43c24

Please sign in to comment.