[NEWS] Document ImmediateRef introspection enhancements.

This commit is contained in:
Eloy Durán
2014-03-17 12:19:35 +01:00
parent c2b2042232
commit 174c3b3b8a
3 changed files with 5 additions and 3 deletions

2
NEWS
View File

@@ -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.

View File

@@ -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

Submodule vm updated: 3071e7a9a4...b8043918eb