-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Slaughter
committed
Sep 30, 2013
1 parent
513eeb1
commit 50fb334
Showing
8 changed files
with
89 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ spec/reports | |
test/tmp | ||
test/version_tmp | ||
tmp | ||
Gemfile.lock | ||
|
||
# YARD artifacts | ||
.yardoc | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# History | ||
## Released Versions | ||
### Version 0.0.2 | ||
#### Patch: Symbol | ||
##### Added | ||
* Symbol | ||
|
||
##### Changed | ||
* All get converted to string first | ||
|
||
### Version 0.0.1 | ||
#### Patch: Inital Code. Fixnum, String | ||
##### Added | ||
* Fixnum | ||
* String |
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 |
---|---|---|
|
@@ -7,4 +7,8 @@ class String | |
|
||
class Fixnum | ||
include Bool | ||
end | ||
|
||
class Symbol | ||
include Bool | ||
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,4 +1,4 @@ | ||
module Bool | ||
VERSION = "0.0.1".freeze | ||
VERSION = "0.0.2".freeze | ||
DATE = "2013-09-30".freeze | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
require 'helper' | ||
|
||
describe Symbol do | ||
describe "#to_b" do | ||
it "returns true when true" do | ||
expect(:true.to_b).to be true | ||
end | ||
|
||
it "returns true when yes" do | ||
expect(:yes.to_b).to be true | ||
end | ||
|
||
it "returns true when t" do | ||
expect(:t.to_b).to be true | ||
end | ||
|
||
it "returns false when false" do | ||
expect(:false.to_b).to be false | ||
end | ||
|
||
it "returns false when no" do | ||
expect(:no.to_b).to be false | ||
end | ||
|
||
it "returns false when f" do | ||
expect(:f.to_b).to be false | ||
end | ||
end | ||
end |