module Chef::Node::Mixin::MashyArray

missing methods for Arrays similar to Chef::Mash methods that call convert_value correctly.

Public Instance Methods

<<(obj) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 24
def <<(obj)
  super(convert_value(obj))
end
[]=(*keys, value) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 28
def []=(*keys, value)
  super(*keys, convert_value(value))
end
collect!(&block) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 47
def collect!(&block)
  super
  map! { |x| convert_value(x) }
end
fill(*args, &block) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 57
def fill(*args, &block)
  super
  map! { |x| convert_value(x) }
end
insert(index, *objs) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 42
def insert(index, *objs)
  objs = objs.map { |obj| convert_value(obj) }
  super(index, *objs)
end
map!(&block) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 52
def map!(&block)
  super
  super { |x| convert_value(x) }
end
push(*objs) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 32
def push(*objs)
  objs = objs.map { |obj| convert_value(obj) }
  super(*objs)
end
replace(obj) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 62
def replace(obj)
  super(convert_value(obj))
end
unshift(*objs) click to toggle source
Calls superclass method
# File lib/chef/node/mixin/mashy_array.rb, line 37
def unshift(*objs)
  objs = objs.map { |obj| convert_value(obj) }
  super(*objs)
end