mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 20:31:17 +08:00
[NEWS] Document ImmediateRef introspection enhancements.
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,5 +1,7 @@
|
||||
= RubyMotion 2.25 =
|
||||
|
||||
* Added some introspection support to `ImmediateRef'. It can now report the
|
||||
actual class, its methods, and a inspect description string.
|
||||
* Fixed a bug where Ruby methods defined on Objective-C tagged pointer
|
||||
objects could not call methods on itself.
|
||||
* Added support for Xcode 5.1 and iOS 7.1 final.
|
||||
|
||||
@@ -17,12 +17,12 @@ describe "ImmediateRef" do
|
||||
|
||||
on_64bit_it "returns the tagged pointer object's methods" do
|
||||
ref = TaggedNSObjectSubclass.taggedObject(42)
|
||||
ref.public_methods(false).should == [:taggedValue, :'isEqualTo:']
|
||||
ref.methods(false).should == [:taggedValue, :'isEqualTo:']
|
||||
end
|
||||
|
||||
on_64bit_it "returns the tagged pointer object's description" do
|
||||
ref = TaggedNSObjectSubclass.taggedObject(42)
|
||||
ref.inspect.should.start_with '#<ImmediateRef:TaggedNSObjectSubclass: 0x2af>'
|
||||
ref.inspect.should.match /#<ImmediateRef:0x\h+ <TaggedNSObjectSubclass: 0x2af>>/
|
||||
end
|
||||
|
||||
on_64bit_it "stays an ImmediateRef when calling a Ruby method on it" do
|
||||
|
||||
2
vm
2
vm
Submodule vm updated: 3071e7a9a4...b8043918eb
Reference in New Issue
Block a user