Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
def keys as methods rather than using method_missing, added load!/rel…
…oad!, more docs/specs
- Loading branch information
1 parent
9d11fce
commit c8da048
Showing
6 changed files
with
198 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ language: | |
paradigm: functional | ||
smalltalk: | ||
paradigm: object oriented | ||
|
||
collides: | ||
does: not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Settings3 < Settingslogic | ||
source "#{File.dirname(__FILE__)}/settings.yml" | ||
load! # test of load | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
require 'spec' | ||
require 'rubygems' | ||
require 'ruby-debug' | ||
require 'ruby-debug' if RUBY_VERSION < '1.9' # ruby-debug does not work on 1.9.1 yet | ||
|
||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'settingslogic' | ||
require 'settings' | ||
require 'settings2' | ||
require 'settings3' | ||
|
||
# Needed to test Settings3 | ||
def collides | ||
'collision' | ||
end | ||
|
||
Spec::Runner.configure do |config| | ||
end |