Sha256: a932849a62afd49555b7f79c4e596808c8226ee29209a1f73bf393f20e31b134

Contents?: true

Size: 279 Bytes

Versions: 6

Compression:

Stored size: 279 Bytes

Contents

def manipulate(bla, label=nil, script=nil, &aaa)
  if aaa.nil? && script.nil? && !label.nil?
    script, label = label, nil
  end
  p label
  p script
  p aaa
  p '---'
end

manipulate :a1, <<-END
  bla1
END
manipulate :a2, "", <<-END
  bla2
END
manipulate :a2, "" do
  bla2
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cpee-1.4.10 server/resources/test.rb
cpee-1.4.7 server/resources/test.rb
cpee-1.4.5 server/resources/test.rb
cpee-1.4.4 server/resources/test.rb
cpee-1.4.3 server/resources/test.rb
cpee-1.4.2 server/resources/test.rb