Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Apr 15, 2012
1 parent 359b0bd commit 07eb314
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/madvertise/ext/config.rb
Expand Up @@ -11,6 +11,7 @@ class Configuration < Section
#
# @param [Symbol] mode The mode to load from the configurtion file
# (production, development, etc)
# @yield [config] The new configuration object.
def initialize(mode = :development)
@mode = mode
yield self if block_given?
Expand Down Expand Up @@ -126,22 +127,27 @@ def method_missing(name, *args)
# that does not call the block given to tap _at all_.
#
class NilSection
# @return true
def nil?
true
end

# @return true
def empty?
true
end

# @return false
def present?
false
end

# @return self
def tap
self
end

# @private
def method_missing(*args, &block)
self
end
Expand Down
2 changes: 1 addition & 1 deletion lib/madvertise/ext/version.rb
@@ -1,6 +1,6 @@
# @private
module Madvertise
module Ext
# @private
VERSION = "0.1.0"
end
end

0 comments on commit 07eb314

Please sign in to comment.