Class: Sources

Inherits:
Rake::FileList
  • Object
show all
Defined in:
lib/rakejava.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Sources

Returns a new instance of Sources.



83
84
85
86
87
# File 'lib/rakejava.rb', line 83

def initialize *args
   @root = args.shift
   args = args.map { |arg| "#{@root}/#{arg}" }
   super
end

Instance Attribute Details

#rootObject

Returns the value of attribute root.



81
82
83
# File 'lib/rakejava.rb', line 81

def root
  @root
end

Class Method Details

.[](*args) ⇒ Object



90
91
92
# File 'lib/rakejava.rb', line 90

def [] *args
   new(*args)
end