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.



75
76
77
78
79
# File 'lib/rakejava.rb', line 75

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

Instance Attribute Details

#rootObject

Returns the value of attribute root.



73
74
75
# File 'lib/rakejava.rb', line 73

def root
  @root
end

Class Method Details

.[](*args) ⇒ Object



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

def [] *args
   new(*args)
end