Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Commit

Permalink
Renamed ClassMethods to Methods, also included Methods into StaticPaths.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jan 23, 2010
1 parent 2b8c644 commit 5cd6765
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
@@ -1,7 +1,7 @@
require 'set'

module StaticPaths
module ClassMethods
module Methods
#
# The registered static directories.
#
Expand Down
6 changes: 4 additions & 2 deletions lib/static_paths/static_paths.rb
@@ -1,10 +1,12 @@
require 'static_paths/class_methods'
require 'static_paths/methods'

require 'set'

module StaticPaths
include Methods

def self.included(base)
base.extend ClassMethods
base.extend Methods
end

#
Expand Down
2 changes: 1 addition & 1 deletion spec/static_paths_spec.rb
Expand Up @@ -5,7 +5,7 @@
require 'classes/static_class'

describe StaticPaths do
include StaticPaths::ClassMethods
include StaticPaths

it "should list static directories" do
Helpers::STATIC_DIRS.each do |dir|
Expand Down

0 comments on commit 5cd6765

Please sign in to comment.