Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'master' into truffle-head
- Loading branch information
Showing
84 changed files
with
451 additions
and
1,288 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.expand_path('../../../spec_helper', __FILE__) | ||
require File.expand_path('../../../shared/object/object_id', __FILE__) | ||
require File.expand_path('../../../shared/kernel/object_id', __FILE__) | ||
|
||
describe "BasicObject#__id__" do | ||
it_behaves_like :basic_object_id, :__id__, BasicObject | ||
it_behaves_like :object_id, :__id__, BasicObject | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
module BasicObjectSpecs | ||
class IVars | ||
def initialize | ||
@secret = 99 | ||
end | ||
end | ||
|
||
module InstExec | ||
def self.included(base) | ||
base.instance_exec { @@count = 2 } | ||
end | ||
end | ||
|
||
module InstExecIncluded | ||
include InstExec | ||
end | ||
|
||
module InstEvalCVar | ||
instance_eval { @@count = 2 } | ||
end | ||
|
||
class InstEvalConst | ||
INST_EVAL_CONST_X = 2 | ||
end | ||
|
||
module InstEvalOuter | ||
module Inner | ||
obj = InstEvalConst.new | ||
X_BY_STR = obj.instance_eval("INST_EVAL_CONST_X") rescue nil | ||
X_BY_BLOCK = obj.instance_eval { INST_EVAL_CONST_X } rescue nil | ||
end | ||
end | ||
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.