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.



65
66
67
68
69
# File 'lib/rakejava.rb', line 65

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

Instance Attribute Details

#rootObject

Returns the value of attribute root.



63
64
65
# File 'lib/rakejava.rb', line 63

def root
  @root
end

Class Method Details

.[](*args) ⇒ Object



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

def [] *args
  new(*args)
end