Created
May 11, 2009 19:57
-
-
Save Serabe/110151 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| %w{interface java_name package signature}.each do |x| | |
| require File.join(File.dirname(__FILE__), x) | |
| end | |
| module Compilable | |
| def self.extended(a_class) | |
| Class.compilable_classes << a_class if a_class.is_a? Class | |
| end | |
| def compilable? | |
| !java_name.nil? | |
| end | |
| end | |
| class Class | |
| def self.compilable_classes | |
| @@compilable_classes ||= [] | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment