Skip to content

Commit f28915c

Browse files
committed
Braid: Update mirror 'lib/predicated' to 'f4e6825'
1 parent 4493d7d commit f28915c

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

.braids

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib/predicated:
33
branch: master
44
remote: braid/lib/predicated
5-
revision: 696a7062f03a94619c0a85fae0e3de86584f4a11
5+
revision: f4e6825c6fde74721143c1e2da8ac6c93695a2da
66
squashed: true
77
type: git
88
url: git://github.com/alexch/predicated

lib/predicated/lib/predicated/from/callable_object.rb

+21-21
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
#see http://blog.zenspider.com/2009/04/parsetree-eol.html
1010
#
1111
#} if RUBY_VERSION =~/^1.9/
12-
13-
raise %{
14-
15-
You appear to be using ruby 1.8.7 and you don't have
16-
an INLINEDIR environment variable set to a valid directory.
17-
18-
ParseTree (used by "from_callable_object") uses RubyInline.
19-
RubyInline requires that the INLINEDIR environment variable point
20-
to a directory. The easiest thing to do is to just go
21-
create a directory somewhere - let's say, ~/inlinedir,
22-
and point the INLINEDIR at it. In bash this would be:
23-
24-
mkdir ~/inlinedir
25-
export INLINEDIR=~/inlinedir
26-
27-
You'll probably want to put this in .bash_profile too.
28-
29-
Sorry for the inconvenience. I hope the value you'll
30-
get out of "from_callable_object" makes it all worth it.
31-
32-
} if RUBY_VERSION=="1.8.7" && !ENV["INLINEDIR"]
12+
#
13+
#raise %{
14+
#
15+
#You appear to be using ruby 1.8.7 and you don't have
16+
#an INLINEDIR environment variable set to a valid directory.
17+
#
18+
#ParseTree (used by "from_callable_object") uses RubyInline.
19+
#RubyInline requires that the INLINEDIR environment variable point
20+
#to a directory. The easiest thing to do is to just go
21+
#create a directory somewhere - let's say, ~/inlinedir,
22+
#and point the INLINEDIR at it. In bash this would be:
23+
#
24+
#mkdir ~/inlinedir
25+
#export INLINEDIR=~/inlinedir
26+
#
27+
#You'll probably want to put this in .bash_profile too.
28+
#
29+
#Sorry for the inconvenience. I hope the value you'll
30+
#get out of "from_callable_object" makes it all worth it.
31+
#
32+
#} if RUBY_VERSION=="1.8.7" && !ENV["INLINEDIR"]
3333
#Procs and lambdas are "callable objects"
3434

3535
module Predicated

lib/predicated/lib/predicated/to/sentence.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module Predicated
55

6-
module ContainerSentence
6+
module Conjunction
77
def to_sentence
88
left.to_sentence + joining_str + right.to_sentence
99
end
@@ -12,9 +12,9 @@ def to_negative_sentence
1212
"This is not true: " + to_sentence
1313
end
1414
end
15-
16-
class And; include ContainerSentence; def joining_str; " and " end; end
17-
class Or; include ContainerSentence; def joining_str; " or " end;end
15+
16+
class And; include Conjunction; def joining_str; " and " end; end
17+
class Or; include Conjunction; def joining_str; " or " end;end
1818

1919
class Not
2020
def to_sentence

0 commit comments

Comments
 (0)