buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BUILDR-184) when creating a sub project, extend it with the parent's methods
Date Sun, 28 Feb 2010 16:05:05 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Boisvert resolved BUILDR-184.
----------------------------------

    Resolution: Won't Fix

I tend to agree here; I'm not sure inheritance is a good default and there's already good
mechanisms in Ruby/Buildr to make this painless where needed.

> when creating a sub project, extend it with the parent's methods
> ----------------------------------------------------------------
>
>                 Key: BUILDR-184
>                 URL: https://issues.apache.org/jira/browse/BUILDR-184
>             Project: Buildr
>          Issue Type: Wish
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>
> sometimes it is required to override methods in Project. my use case is that I'd like
to override 'id' from package
> i think it would be nice if i could do:
> define 'base'
>    def id 
>       ...
>    end
>    define 'sub'
>    end
> end
> so that 'sub' inherits the redifinition of id.
> it will also have benefits for utility methods since it means i can just call it directly,
not through 'parent' (or parent.parent in case of more level of nesting)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message