[as2api-dev] Problem documenting getter/setter with Inspectable
meta tag
Xavi Beumala
xavi at code4net.com
Thu Sep 15 12:06:34 UTC 2005
After testing it again with the binary,
it also doesn't work. It seems there's some kind of problem with interfaces.
Is ther any known issue?
X.
Xavi Beumala wrote:
> Hi all,
>
> I've checkout the last review of as2api from svn (I want to be able to
> document methods with [Inspectable] metadata).
>
> But when I run my ant script (is working with windows build) I'm getting
> the following errors:
>
> [exec] ./api_model.rb:185:in `each_implemented_interface': undefined
> method `each_interface' for #<ASInterface:0x2cb2248> (NoMethodError)
> [exec] from ./api_model.rb:184:in `each_ancestor'
> [exec] from ./api_model.rb:184:in `each_implemented_interface'
> [exec] from ./api_model.rb:306:in `inherited_comment'
> [exec] from ./output/html/core_pages.rb:332:in `document_method'
> [exec] from ./output/html/core_pages.rb:307:in `html_div'
> [exec] from (eval):3:in `element'
> [exec] from (eval):3:in `html_div'
> [exec] from ./output/html/core_pages.rb:307:in `document_method'
> [exec] ... 34 levels...
> [exec] from ./ui/cli.rb:285
> [exec] from
> c:/developer/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require__'
> [exec] from
> c:/developer/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require'
> [exec] from as2api.rb:3
>
>
> I don't understand anything at all :S I'm missing something?
>
> Many thanks,
> Cheers
> X.
>
>
> Xavi Beumala wrote:
>
>> Great!
>> I've tested it and now it seems to be working :-)
>>
>> Thx a lot!
>> X.
>>
>>>
>>>
>>> -------- Original Message --------
>>> Subject: Re: [as2api-dev] Problem documenting getter/setter with
>>> Inspectable meta tag
>>> Date: Sat, 3 Sep 2005 21:43:44 +0000
>>> From: David Holroyd <dave at badgers-in-foil.co.uk>
>>> To: as2api-dev at lists.badgers-in-foil.co.uk
>>> References: <431711AC.3050602 at code4net.com>
>>> <20050902085203.GA8939 at badgers-in-foil.co.uk>
>>>
>>> On Thu, Sep 01, 2005 at 04:35:24PM +0200, Xavi Beumala wrote:
>>>
>>>> I'm having problems when documenting a getter/setter property wich
>>>> has a [Inspectable] meta tag associated:
>>>>
>>>> <code>
>>>> /**
>>>> * Getter/Setter
>>>> */
>>>> public function get myVar():String {
>>>> return _myVar;
>>>> }
>>>>
>>>> public function set myVar(mr:String) {
>>>> _myVar = m;
>>>> }
>>>> </code>
>>>>
>>>> The code above generates correctly the documentation for the class,
>>>> but if the code changes to:
>>>>
>>>> <code>
>>>> [Inspectable]
>>>> /**
>>>> * Getter/Setter
>>>> */
>>>> public function get myVar():String {
>>>> return _myVar;
>>>> }
>>>>
>>>> public function set myVar(mr:String) {
>>>> _myVar = m;
>>>> }
>>>> </code>
>>>>
>>>> Then as2api doesn't add the comments to the documentation.
>>>
>>>
>>>
>>>
>>> I think I've fixed this. If you're using the Ruby sources, you can
>>> download a modified version of parse/parser.rb from here:
>>>
>>> http://svn.badgers-in-foil.co.uk/as2api/trunk/as2api/parse/parser.rb
>>>
>>> Otherwise, let me know what platform you're using, and I'll try to get
>>> an updated executable built for you some time soon.
>>>
>>>
>>> Thanks for reporting this bug!
>>> dave
>>>
>>
>>
>> _______________________________________________
>> as2api-dev mailing list
>> as2api-dev at lists.badgers-in-foil.co.uk
>> http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev
>>
>>
>
>
> _______________________________________________
> as2api-dev mailing list
> as2api-dev at lists.badgers-in-foil.co.uk
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev
>
>
More information about the as2api-dev
mailing list