Class: AntPropertyHelper

Inherits:
Struct
  • Object
show all
Defined in:
lib/ivy4r.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#antObject

Returns the value of attribute ant

Returns:

  • (Object)

    the current value of ant



242
243
244
# File 'lib/ivy4r.rb', line 242

def ant
  @ant
end

#ant_propertiesObject

Returns the value of attribute ant_properties

Returns:

  • (Object)

    the current value of ant_properties



242
243
244
# File 'lib/ivy4r.rb', line 242

def ant_properties
  @ant_properties
end

Instance Method Details

#[](matcher) ⇒ Object

:nodoc:



247
248
249
250
# File 'lib/ivy4r.rb', line 247

def [](matcher) #:nodoc:
  property = ant_properties.find {|p| matcher === p[0] }
  property ? property[1] : nil
end

#[]=(name, value) ⇒ Object

:nodoc:



243
244
245
# File 'lib/ivy4r.rb', line 243

def []=(name, value) #:nodoc:
  ant.property :name => name, :value => value
end